Windows – How to Force an Application to Use a Specific Network Card

batch filenetworkingwindowswindows 10

So let's say i have multiple network cards, each of them connected to a different router & ISP.

how can i force an app to use a specific connection? when i enable all the connections in windows 10, all the apps will connected to the first one enabled

is there any software that does this? or maybe a batch file?

I also have a Kaspersky Internet Security but couldn't find such option in it.

Best Answer

I think you're looking for something like ForceBindIP.

You have to run it from the command line, but you could easily wrap that in a batch file if it's something you do often.

As an example, let's assume that your primary network card has an IP address of 192.168.1.10 and the secondary card has an IP of 192.168.254.10. Normally, all traffic routes out through the primary IP address and therefore out the primary router. If you wanted to use Chrome to browse out of the other interface, you would do something like this:

"C:\Program Files (x86)\ForceBindIP\ForceBindIP64.exe" 192.168.254.10 "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

Hope this helps.

Related Question