How to force an application to use a specific network card?
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.
John P
From my rotting body, flowers shall grow and I am in them and that is eternity
Updated on September 18, 2022Comments
-
John P over 1 year
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.
-
schweik over 5 yearsThe silmplest way, I see, is to run the application in a virtual machine and to bind his VM to a specified interface.
-
John P over 5 years@schweik but i remember someone wrote a batch file for me that did this but I dont remember how, in it we specified the application and the network card(connection), therefore running that batch file would've opened that app with that connection
-
Thalys about 2 yearsNot actually the first one, the one with the highest metric
-