8

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.

3
  • 2
    The silmplest way, I see, is to run the application in a virtual machine and to bind his VM to a specified interface.
    – schweik
    Oct 25, 2018 at 10:54
  • @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
    – John P
    Oct 25, 2018 at 10:55
  • Not actually the first one, the one with the highest metric
    – Journeyman Geek
    Feb 10, 2022 at 8:21

1 Answer 1

6

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.

3
  • I can get ForceBindIP to work with Firefox. I even tried various versions of Chrome 7x and ForceBindIP doesn't want to work.
    – Sun
    Sep 7, 2022 at 14:27
  • @Sun They explicitly explain on their page that it does not works with Chrome and what's the reason.
    – tigrou
    Nov 3, 2022 at 20:56
  • They state older versions of Chrome may work, but I was not unable to use ForceBindIP on portable versions of Chrome 70 to Chrome 79. I might have used the tools incorrectly, but going back to old versions did not allow me to use Chrome. Firefox it is.
    – Sun
    Mar 28 at 22:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .