How to bind applications to specific network adapter

Bralok

Honorable
Dec 4, 2013
2
0
10,510
Hi all,

I am currently using a computer in a corporate environment which is connected to the intranet through the ethernet adapter and to the internet through the wireless adapter.

The problem is this: the ethernet adapter has higher priority in the routing table, so if the wire is connected to the ethernet adapter I cannot neither access the internet nor get emails in Outlook.

I am wondering if it is possible to bind, for instance, Internet Explorer to the ethernet adapter so I can access to the intranet and Chrome and Outlook to the wireless adapter so I can both surfer the internet and get emails when the wire is connected.

I have already tried ForceBindIP but I cannot get it working on Windows 7 64 bits.

Can anyone help me out?

Thanks,
Fran
 
You can override the routing but it could be excessive in some cases.

The key command to learn to use is ROUTE.

So first thing to do is either with the route command or via the network configurations remove the default gateway on the interface that has less paths. Pretty much I would say remove it on your corporate network and leave the default on the one you want to do to the internet.

Now for the directly connected network...ie the subnet you are on.. you have to do nothing. Any other networks on your corporate network you must put in route add statements for each subnet and point them to the gateway for that interface. As long as there are not a lot it is not too hard to put them in.

The only other thing to watch for is on some laptops the bios will disable the wireless interface at a electrical level when you plug in the ethernet or doc the laptop. You need to change that bios setting.
 
Thank you bill001g for your quick response. I have 2 concerns about your solution:

1.- I have to access several domains within the intranet because my company is a big group with locations in several contries all around the world. So every time I need to access a new domain I should include a new route in the routing table, shouldn't I?

2.- As I said in #1, I access several domains within the intranet via URL. Can you please let me know an easy way of getting the IP Address/subnet to get it configured?


Thanks again!
 
If your company uses private ip then just route all the rfc1918 addresses to the lan since they cannot be used on the internet. 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16

If you use real public ip then unfortunately you are going to have to find them. Ping some of the addresses will show you the ip and then guess the subnet mask I suspect. This is why it is a huge pain to do it this way when there are lots of addresses.
 
ForceBindIP still works for Windows 8.1 from my usage.

If you are using a 64 bit version of windows, make sure to place the bindip.dll into the C:\Windows\SysWOW64 and C:\Windows\System32, and then bind a application via command prompt with elevated rights

PHP:
forcebindip IP.of.network.adapter  "full path to application"
e.g.
PHP:
forcebindip 192.168.0.4 "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"

hope this helps
 
I achieved this solution using the following:

comodo firewall(free)
forcebindip (free)
assumptions:
1. LAN is the corporate network own ip and gateway
2. Wireless is the one that you want to use it 3. chrome is the browser for use JUST with wireless network card

install comodo firewall and create 3 rules for chrome application in this way:
Go to firewall then application rules, then add , select the path of the chrome and then use the option "USE the custom rule set"

**rule 1 ALLOW IP through wireless network card action: allow protocol: IP direction : in or out Description: Just wireless

Source address: - MAC ADDRESS MAc Address :

Destination address : any

IP details : any

**rule 2 ALLOW protocol through wireless network card action: allow protocol: TCO or UDP direction : in or out Description: Enable tragic wireless

Type: - Network Zone Zone: Wireless network Connection

Destination address : any

Source port: any

Destination port : any

**rule 3 Block traffic through LAN network card action: Bloc protocol: TCO or UDP direction : in or out Description: BLOCK trafic LAN

Type: - Network Zone Zone: Local Area Connection

Destination address : any

Source port: any

Destination port : any

we are almost done. open your IE and chrome at the same time, you will notice the navigation is blocked in your chrome.

Now install the forcebindip that small program use 2 file , the executable and the BindIP.dll, the dll goes to windows\system32 (32bit OS) and windows\system32 and windows\syswow64 for 64 bits.

now create 2 separate batch files first one for execute the forcebind and the second execute the first one with elevated permissions

batch 1: (execute the second bath as admin) "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" -windowstyle hidden -nologo -noprofile -executionpolicy bypass -command "start-process -verb 'runas' -filepath

batch 2: (Launch chrome incognito mode and open automatically a page to check the WAN IP) C:\Windows\System32\ForceBindIP.exe XXX.XXX.XXX.XXX "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --incognito --new-window http://ip-lookup.net/index.php

XXX.XXX.XXX.XXX: replace the X´s with the local ip of your wireless card. , if you are using DHCP on this interface you need to update the bath every time.

enjoy Note:
 


Hi,

Have you tried ForceBindIP http://old.r1ch.net/stuff/forcebindip/. It seems that it is the most common solution for your problem.

If you want to have it even more separated you can use Virtual machines and bridge one interface for personal or corporate work to the VM and use the host OS for the rest of the activities. (that's how I have been doing it for the last couple of years).