You plug into a customer's or office network with a LAN cable to reach their servers, but that network blocks the internet. Your phone hotspot has internet, yet as soon as you connect it, Windows keeps sending everything through one connection, and you end up unplugging the cable or switching Wi-Fi back and forth all day.
Why Windows uses only one connection
When you are connected to LAN and Wi-Fi together, Windows still sends internet traffic through a single "default route". It picks the connection with the lowest interface metric, which is usually the wired LAN. If that LAN has no internet, your browser simply stops loading pages, even though the hotspot is connected.
Option 1: Change the interface metric
You can tell Windows to prefer Wi-Fi for internet traffic by giving it a lower metric:
- Open Control Panel, then Network and Sharing Center, then Change adapter settings.
- Right-click your Wi-Fi adapter, choose Properties, then Internet Protocol Version 4 (TCP/IPv4), then Properties.
- Click Advanced, untick Automatic metric and enter a low number such as 10.
- Do the same for the LAN adapter with a higher number such as 50.
The catch: this is all or nothing. Internal company addresses may now try to go out through Wi-Fi too, unless you also add routes for them.
Option 2: Add a route for the office network
Keep Wi-Fi as the default and send only the office subnet through the LAN. In an Administrator Command Prompt, for an office network of 10.0.0.0/8 reached through a LAN gateway of 192.168.1.1:
route -p add 10.0.0.0 mask 255.0.0.0 192.168.1.1
This works well, but you need to know the right subnets and gateway for every site you visit, and the commands need administrator rights.
Option 3: Choose the network per app with a local proxy
FlowSwitchGate is a local HTTP/HTTPS proxy for Windows. Instead of changing Windows routing, you point a browser such as Firefox, or any app that supports a proxy, at FlowSwitchGate and choose whether its traffic leaves through the LAN or the Wi-Fi hotspot. Other apps keep using the network they already use, so you can stay on the office LAN and browse the internet through your hotspot at the same time.
Always follow your employer's or customer's IT policy. Only connect two networks at the same time where it is allowed.