Home » Questions » Computers [ Ask a new question ]

Force an application to use a specific network interface

Force an application to use a specific network interface

I'm using multiple network interfaces (LAN and Wireless), and I've noticed that there's a way to change the order of prefered interfaces. How can I use the wired network to do work, check email, and so on (securely), and use the wireless VLAN to access other stuff (otherwise blocked by ports and sometimes websense)?

Asked by: Guest | Views: 286
Total answers/comments: 3
Guest [Entry]

"For Mac, there is a simple solution which I use. It's actually an implementation of @Andor's solution. Install a proxy and configure your apps to use it:

I installed SquidMan
In configuration add the following line. You need to specify the ip you will use for your private apps instead of x.x.x.x:

tcp_outgoing_address x.x.x.x

Start SquidMan and configure your app to use it as a proxy.

I spent an hour to find this information in different pages, so I hope it helps others to do it faster."
Guest [Entry]

"I run my business applications inside a virtual machine. I used the instructions above to set WiFi as my preferred connection, then configured the virtual machine to use the ethernet port as a ""Bridged"" adapter.

Anything running inside the virtual machine now is hard-linked to the ethernet port. WiFi is my preferred connection for all other applications (outside the virtual machine), as long as I have a WiFi connection attached.

I believe there exist utilities that can be used to force the binding of an application to a particular ethernet port, but have not researched it for MacOS.

The routing method previously mentioned is somewhat complex for the ""lay person"", but seems like a good viable approach as well, especially if you repeatedly get the same IP address on your connections."
Guest [Entry]

"Even though this question is for OSX, I'll leave the following here which works on Windows 7 64-bit. This question came up as one of the top results when googling for force applications to go through a specific adapter, so the following might be useful to others.

http://www.howtogeek.com/117890/how-to-force-an-application-to-use-a-specific-network-card/

The above guide uses a utility called ForceBindIp which is advertised to work on Windows NT/2000/XP/2003 but I had no issues getting it to work on Windows 7 - 64 Bit.

Also, Issues with ForceBindIP on Windows 7 (x64)"