I think my question is just (how) can I force VBAN to use a specific network adapter?
More details:
I’m working from home and I have a pretty straight forward setup where I have 2 PCs arranged like so:
PC A:Has my headset connectedReceives Audio Output from PC B
PC B:Receives Audio Input (Mic) from PC A
It’s all working fine, but the PC B needs to connect to the work VPN and when it does so VBAN stops working.
From my understanding, the issue is that PC B now has 2 IP addresses/2 Network adapters and is choosing the default (wrong) one when sending/receiving audio, since I can see that when I switch the VPN the VBAN UI changes from IP Host Address “192.168.****” to “172.**** 192.168.***”
EDIT: Managed to solve the issue myself. As I suspected, the problem was that the packets were leaving through the wrong interface so the PC A was ignoring the Incoming stream because the IPs did not match.
If anyone comes across this post with the same problem, you will probably need a bare minimum understanding of networking but here is what I did:
On an elevated command prompt of the PC B execute:
route print
On most use cases the 192.168.* network should be reserved for domestic use, so any route starting with 192.168. on the 1st column should always have On-Link on the 3rd column and whatever is your LAN IP on the 4th column.
In my case I had:
192.168.1.0 255.255.255.0 On-link 192.168.1.66 281
192.168.1.0 255.255.255.128 172.29.70.119 172.29.70.120 1
So I do have a On-link entry but I also have a non-On-link entry and that is what was causing the problem which I needed to remove with the command:
route delete 192.168.1.0 mask 255.255.255.128 172.29.70.119