Use notebook WiFi netword card to connect to home VPN

Hi,

I have a Windows11 notebook connected to work network via LAN, and to my smartphone hotspot via WiFi.

How do I configure OpenVPN Connect to use the Wifi connection? Connection works fine when I’m connected only to WiFi, but does not work when connected to both LAN and WiFi. I suspect the VPN client tries connecting via LAN…

I saw some guides about putting “local 192.168.0.100” in the config file, not sure if it must go in the .ovpn file I feed to OpenVPN Connect.

So you want your WiFi to be the default gateway(the network source you want ur device to use)?

You probably want to try: Connect to BOTH ur WiFi and LAN WITHOUT OpenVPN connected, see if the data goes through WiFi.

If it doesn’t, u want to adjust ur widows network settings, here is an example article.

https://www.windowscentral.com/how-change-priority-order-network-adapters-windows-10

Note: U want the metric number of preferred gateway(WiFi) SMALLER than ur LAN.

If the upper situation doesn’t fit, I don’t really know the issue nor the solution so u need others help. :slight_smile:

Already tried, unfortunately it does not work.

It seems Windows still gives priority to LAN when connected, regardless of of the adapter metric.

This is why i was looking for a way to configure openVPN to bind to a specific address…