
双网卡 让某地址走特定网卡

Have you ever been connected to a network, and plugged in a 3G card and wished you could make only a certain program use your 3G connection ? Well you can, read on to find out how.
您是否曾经连接到网络并插入3G卡,并希望仅使用某个程序才能使用3G连接? 好吧,您可以继续阅读以了解操作方法。
安装ForceBindIP (Installing ForceBindIP)
Head over to the ForceBindIP download page, and grab a copy of the zipped version.
转至ForceBindIP下载页面 ,并获取压缩版本的副本。

Once it has downloaded, extract the contents of the zip file.
下载完成后,解压缩zip文件的内容。

You will need to copy both files.
您将需要复制两个文件。

Then paste them in:
然后将它们粘贴到:
C:\Windows\System32
C:\ Windows \ System32

Now press the Win + R keyboard combination and type cmd into the run box, then press enter.
现在按Win + R键盘组合,在运行框中键入cmd,然后按Enter。

When the command prompt opens, run the following:
当命令提示符打开时,运行以下命令:
cd C:\Windows\System32
cd C:\ Windows \ System32

Now we can bind an application to a network adapter, to do this type:
现在,我们可以将应用程序绑定到网络适配器,以执行以下类型:
ForceBindIP %NetworkCardsIP% %PathToProgram%
ForceBindIP%NetworkCardsIP%%PathToProgram%
For example:
例如:
ForceBindIP 127.0.0.1 “C:\Program Files (x86)\Mozilla Firefox\firefox.exe”
ForceBindIP 127.0.0.1“ C:\ Program Files(x86)\ Mozilla Firefox \ firefox.exe”
This assumes:
假设:
- The network card you want to bind the application to has an IP of 127.0.0.1 您要将应用程序绑定到的网卡的IP为127.0.0.1
- The program you want to bind to that network card is Firefox. 您要绑定到该网卡的程序是Firefox。

Just a few things to remember:
请记住以下几点:
- You have to give the full path to your program. 您必须给出程序的完整路径。
- If the path contains spaces, enclose it in quotes. 如果路径包含空格,请将其用引号引起来。
- You will have to launch the program via this method every time you want to bind it to that network card. 每次要将程序绑定到该网卡时,都必须通过此方法启动该程序。
That’s all there is to it.
这里的所有都是它的。
翻译自: https://www.howtogeek.com/117890/how-to-force-an-application-to-use-a-specific-network-card/
双网卡 让某地址走特定网卡