ForceBindIP使用说明

使用方法：

特别说明：Windows 64位系统，需要运行的程序如果是64位ForceBindIP对应64位，程序是32位，对应也是ForceBindIP对应32位，不对，会导致网络不通失败
从1.3版开始，还可以使用64位版本-将ForceBindIP64与64位应用程序一起使用。请注意，即使您的操作系统是64位，许多应用程序仍然是32位。如果不确定，请正常运行程序并检查“任务管理器”的“详细信息”选项卡-32位应用程序名称旁边带有“ * 32”标记。

缺少组件：
需要支持的组件：Visual C++ Redistributable for Visual Studio 2015
微软官方下载组件：https://www.microsoft.com/en-us/download/details.aspx?id=48145
百度搜索：Visual C++ Redistributable for Visual Studio 2015

ForceBindIP同目录运行
ForceBindIP64.exe 192.168.1.10 "C:\Users\Administrator\Desktop\Foxmail.exe"

或者：新建同目录运行，ForceBindIP.bat
案列一
ForceBindIP64.exe 192.168.1.10 "C:\Users\Administrator\Desktop\Foxmail.exe"
案列二
"C:\Users\Administrator\Desktop\ForceBindIP64.exe" 192.168.1.10 "C:\Users\Administrator\Desktop\Foxmail.exe"

代码说明：
路径用""，或者有空格也用""
(路径)程序目录ForceBindIP64.exe IP地址 "路径\程序文件"

查询GUID,开始-运行-regedit 打开注册表
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\
{3177423B-47E9-40C2-AA2F-29B0DDE3221E}
案列一
ForceBindIP64.exe {3177423B-47E9-40C2-AA2F-29B0DDE3221E} "C:\Users\Administrator\Desktop\Foxmail.exe"
案列二
"C:\Users\Administrator\Desktop\ForceBindIP64.exe" {3177423B-47E9-40C2-AA2F-29B0DDE3221E} "C:\Users\Administrator\Desktop\Foxmail.exe"


其它注意事项
Google Chrome兼容性
Chrome需要其他配置才能在ForceBindIP下运行。这是因为Chrome 72或更高版本会阻止第三方程序注入DLL。要使ForceBindIP正常工作，请安装此企业策略注册表文件以重新启用DLL注入，然后打开Chrome并转到chrome://flags/#network-service-in-process并启用设置（Chrome 76+）或chrome://flags#network-service禁用设置（Chrome 75-）。


------------------------------------------------------------------------------------------


ForceBindIP 1.3.2 免费下载 指定程序使用某个网卡
标签Tags:ForceBindIP1.3.2下载,ForceBindIP绿色版,ForceBindIP最新版,强制程序使用某个网卡

运行环境:/Win10/Win8/Win7/2019/2016/2012/2008/2003/XP
软件位数:32位/X86/64位/X64
软件语言:英文
更新时间:2020-08-26
软件等级:
软件大小:100 KB
软件简介 错误报告!
ForceBindIP 1.3.2 安装版/绿色版免费下载
ForceBindIP1.3.2 ForceBindIP1.3.2下载

ForceBindIP是一款将任何Windows应用程序绑定到特定的接口或IP地址的软件工具.

关于ForceBindIP 1.3.2
ForceBindIP是一个免费的Windows应用程序，它将自己注入到另一个应用程序中，并更改某些Windows套接字调用的方式，从而允许您强制另一个应用程序使用特定的网络接口/ IP地址。如果您在具有多个接口的环境中，并且您的应用程序没有绑定到特定接口的选项，则此选项很有用。

ForceBindIP分两个阶段工作-加载程序ForceBindIP.exe将以挂起状态加载目标应用程序。然后它将注入一个DLL（BindIP.dll），该DLL将WS2_32.DLL加载到内存中并拦截bind（），connect（），sendto（），WSAConnect（）和WSASendTo（）函数，将它们重定向到DLL中的代码，验证它们将绑定到哪个接口，如果没有指定接口，则（重新）绑定套接字。功能拦截完成后，将恢复目标应用程序。请注意，当存在注入的DLL时，某些具有反调试器/注入技术的应用程序可能无法正确运行。尽管该技术应该可以正常工作，但适用于绝大多数应用。

从1.2版开始，WS2_32.DLL中所有显式或隐式绑定到接口的已知函数都将被拦截。但是请注意，如果某些程序实现的连接不使用标准winsock函数，则它们可能仍会使用默认接口。ForceBindIP不会阻止通过VPN使用应用程序时可能发生的信息泄漏。例如，所有主机名查找（DNS请求）将通过默认网关解析，因为这些请求源自Microsoft DNS客户端而不是程序。

ForceBindIP 1.3.2用法
ForceBindIP没有用户界面，它直接从cmd提示符或快捷方式运行。要运行“ app.exe”并将其强制绑定到192.0.2.100，您可以将ForceBindIP运行为"C:\Program Files (x86)\ForceBindIP\ForceBindIP.exe" 192.0.2.100 "c:\full\path\to\app.exe"。如果需要，目标程序的命令行选项也可能会出现在路径之后。

许多应用程序期望从它们自己的文件夹中启动。如果您创建ForceBindIP的快捷方式，则目标程序将改为在ForceBindIP的文件夹中启动。要解决此问题，请编辑快捷方式的属性，并将“开始于”文件夹设置为包含您要绑定的程序.exe的文件夹。

如果例如IP地址是动态的，ForceBindIP也可以采用接口的GUID。要查找界面的GUID，请运行regedit并浏览到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces。找到具有动态地址的接口，然后复制密钥名称。然后，您可以运行ForceBindIP作为ForceBindIP {4FA65F75-7A5F-4BCA-A3A2-59824B2F5CA0} c:\path\to\app.exe

1.2版及更高版本提供了可选的-i参数。如果目标应用程序在启动时崩溃或表现出其他意外行为，请尝试使用-i，例如：ForceBindIP -i 192.0.2.100 "c:\full\path\to\app.exe"。这将导致ForceBindIP加载程序等待，直到应用程序进入其消息循环，然后再注入拦截DLL。但是，应用程序在加载DLL之前进行的任何网络活动都不会绑定到所选接口。

从1.3版开始，还可以使用64位版本-将ForceBindIP64与64位应用程序一起使用。请注意，即使您的操作系统是64位，许多应用程序仍然是32位。如果不确定，请正常运行程序并检查“任务管理器”的“详细信息”选项卡-32位应用程序名称旁边带有“ * 32”标记。

切记要更改到工作目录（cmd提示符）或设置您创建的任何快捷方式的“开始于”选项（请参见上文）。引号丢失和错误的“开始于”文件夹是ForceBindIP无法正常工作的最常见原因。

一些真实的示例显示了正确的命令行引用：

"C:\Program Files (x86)\ForceBindIP\ForceBindIP.exe" 192.0.2.100 "C:\Users\Richard\AppData\Local\Discord\app-0.0.298\Discord.exe"

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

Google Chrome兼容性
Chrome需要其他配置才能在ForceBindIP下运行。这是因为Chrome 72或更高版本会阻止第三方程序注入DLL。要使ForceBindIP正常工作，请安装此企业策略注册表文件以重新启用DLL注入，然后打开Chrome并转到chrome://flags/#network-service-in-process并启用设置（Chrome 76+）或chrome://flags#network-service禁用设置（Chrome 75-）。

Firefox相容性
Firefox要求将about:config?filter=browser.launcherProcess.enabled首选项设置为false，否则ForceBindIP会附加到启动器，而不是实际程序。

ForceBindIP将在32位和64位Windows XP / Vista / 7/8/10上运行。要使ForceBindIP正常运行，必须使用Visual Studio 2015运行时（x86和x64）（安装程序会告知您是否缺少它们）。

英文好的同学可以查看原文 https://r1ch.net/projects/forcebindip
-------------------------------------------------------------------------------
英文原版说明：
ForceBindIP
Bind any Windows application to a specific interface or IP address

About
ForceBindIP is a freeware Windows application that will inject itself into another application and alter how certain Windows socket calls are made, allowing you to force the other application to use a specific network interface / IP address. This is useful if you are in an environment with multiple interfaces and your application has no option to bind to a specific interface.

ForceBindIP works in two stages - the loader, ForceBindIP.exe will load the target application in a suspended state. It will then inject a DLL (BindIP.dll) which loads WS2_32.DLL into memory and intercepts the bind(), connect(), sendto(), WSAConnect() and WSASendTo() functions, redirecting them to code in the DLL which verifies which interface they will be bound to and if not the one specified, (re)binds the socket. Once the function intercepts are complete, the target application is resumed. Note that some applications with anti-debugger / injection techniques may not work correctly when an injected DLL is present; for the vast majority of applications though this technique should work fine.

As of version 1.2, all known functions in WS2_32.DLL that either explicitly or implicitly bind to an interface are intercepted. Please note however that certain programs may still end up using the default interface if they implement connections that do not use the standard winsock functions. ForceBindIP will not prevent information leaks that may occur when using applications over a VPN. For example, all host name lookups (DNS requests) will be resolved through the default gateway as these requests originate from the Microsoft DNS Client, not the program.

Usage
ForceBindIP has no user interface, it runs directly from a cmd prompt or a shortcut. To run 'app.exe' and force it to bind to 192.0.2.100, you would run ForceBindIP as "C:\Program Files (x86)\ForceBindIP\ForceBindIP.exe" 192.0.2.100 "c:\full\path\to\app.exe". Command line options for the target program may also appear after the path if needed.

Many applications expect to be started from their own folder. If you create a shortcut to ForceBindIP, the target program will start in ForceBindIP's folder instead. To fix this, edit the properties of the shortcut and set the "Start in" folder to the folder containing the program .exe you're trying to bind.

ForceBindIP can also take the GUID of an interface if for example the IP address is dynamic. To find out the GUID of your interface, run regedit and browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. Find the interface which has the dynamic address and then copy the key name. You can then run ForceBindIP as ForceBindIP {4FA65F75-7A5F-4BCA-A3A2-59824B2F5CA0} c:\path\to\app.exe

Version 1.2 and higher provides an optional -i parameter. If the target application crashes on startup or exhibits other unexpected behaviour, try using -i, eg: ForceBindIP -i 192.0.2.100 "c:\full\path\to\app.exe". This will cause the ForceBindIP loader to wait until the application has entered its message loop before injecting the interception DLL. Any network activity the application makes prior to the DLL being loaded will not have been bound to the chosen interface however.

As of version 1.3, a 64 bit build is also available - use ForceBindIP64 with 64 bit applications. Do note that even if your OS is 64 bit, many applications are still 32 bit. If you aren't sure, run your program normally and check the Task Manager details tab - 32 bit applications are marked with "* 32" next to their name.

Remember to either change to the working directory (cmd prompt) or set the "Start in" option of any shortcuts you make (see above). Missing quotes and wrong "Start in" folders are the most common reasons for ForceBindIP failing to work.

Some examples showing proper command line quoting:

"C:\Program Files (x86)\ForceBindIP\ForceBindIP.exe" 192.0.2.100 "C:\Users\Richard\AppData\Local\Discord\app-0.0.298\Discord.exe"

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

Google Chrome Compatibility
Using ForceBindIP with Google Chrome is a popular request. Unfortunately the newest versions of Chrome have moved networking functionality away from the main process which ForceBindIP would normally attach to, and there are strong anti-DLL-injection mechanisms. Unfortunately this means there is no way to use ForceBindIP with Chrome any longer.

Firefox Compatibility
Firefox requires the about:config?filter=browser.launcherProcess.enabled preference set to false, otherwise ForceBindIP attaches to the launcher and not the actual program.

Is ForceBindIP Safe?
Due to the way the program works (opening another program and injecting a DLL into it), it may trigger a warning in anti-virus or security products. ForceBindIP is not malicious and completely safe to use by itself, however some software might object to the presence of an injected DLL. This is common with games that use anti-cheat systems, as a DLL injected into the game could look very similar to a hack / cheat. As ForceBindIP is quite popular, it is hopefully not going to get you banned from any games, but you should still use it at your own risk on games with anti-cheat systems.

Download
ForceBindIP will work on 32 and 64 bit Windows XP / Vista / 7 / 8 / 10. The Visual Studio 2015 Runtimes (x86 and x64) are required for ForceBindIP to function (the installer will let you know if they're missing).

ForceBindIP-1.32-Setup.exe (101 KiB). Setup with uninstaller.

ForceBindIP-1.32.zip (42 KiB). Zip file for manual installation. The ForceBindIP EXE and and BindIP DLL files must be placed in the same folder.

Donate
If you find ForceBindIP useful, please support my work by making a PayPal donation or using Bitcoin (bc1ql74yuuxaymlc8c2pmwhdmc28hzp4kr5zjn77k4) / Bitcoin Cash (qr60uckvnv32d8e0k3zdxqplku40lq7fks5qeec4ah). Thanks!

Version History
v1.32 (2017-12-01)
Updated usage instructions and improved error messages when failing to launch the target process. No functional changes.

v1.31 (2016-08-30)
Fixed binding to the wrong port when overriding listening sockets. The problem had appeared due to code changes needed for 64 bit support. Thanks to Marvin Wagner for the report.

v1.3 (2015-12-29)
Updated loader to load BindIP.dll from the installation folder.
Updated installer to check for pre-requisites.
No longer installs to the system folder.

v1.2a (2009-09-17)
Re-released with obfuscated function names to work around false positive anti virus detection.

v1.2 (2008-06-03)
Updated to include additional Winsock functions (WSA family).
Added -i parameter for delayed injection.

v1.0 (2005-10-18)
First public version.
Twitter: @R1CH_TL


参考文章：
https://www.pianshen.com/article/73061970879/
https://r1ch.net/projects/forcebindip
https://m.crsky.com/mip/soft/291321.html
http://www.520xiazai.com/soft/forcebindip.html
https://aichh.com/1001.html
https://blog.csdn.net/culunxun2863/article/details/108841124












