I have a Raspberry pi connected via my ethernet adapter directly to my windows PC and I cannot figure out for the life of me how to keep windows from using that adapter to try to access the internet, I need to use it for other Python server shenanigans but I don’t want all my internet traffic going through there. anyone know how to force windows to default to my WAN adapter?
This is taking a guess at your configuration but if rpi is ethernet, and the real internet connection is wifi, it’ll be confused as it will (not unreasonably, usually) default to trying to use the (normally) more stable wired connection when present.
Try (meaning, it will almost certainly be able to do it unless something else is broken, but I can’t present to you your own configuration):
- remove the default route (0.0.0.0) from the pi network interface (may need to check it has its own subnet on the interface)
- or set the metric on that interface very high
these can be done from ncpa.cpl or hopefully settings, or with cmd route e.g. step 4, or How to tell Windows to use a different default network card ? :: SG FAQ
3 Likes
thanks! i will have to do some more testing to be absolutely sure but I think this fixed my problem. been struggling with this for weeks!!
1 Like