Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 network cards each connecting to a different network. For some web sites I need to force IE to use a particular one. How could this be done?

P.s. This is NOT VPN related. Both network connections are regular connections.

share|improve this question

migrated from Jul 16 '09 at 16:08

This question came from our site for professional and enthusiast programmers.

You should familiriaze yourself with the notion of routing and use the route command.

share|improve this answer

You should read up on the "route" (c:\windows\system32\route.exe on my XP) command. Just typing "route" at a command prompt will give you some info ..

look into route add

share|improve this answer

I had this issue with two disparit networks and I was connected to both of them, but needed certain websites to use certain NICs (it was a stupid setup).

Basically, find out the IP address of the website you want to resolve over each nic, then in the command prompt, enter:

route add x.x.x.x mask y.y.y.y

x = IP address of website
y = IP address of NIC to use

And enjoy your newfound freedom :)

Worth noting with this method though the route will be deleted next time you restart. To make it persistant, put a -p on the end of the command.

share|improve this answer

This is not really a question for Stack Overflow, but.. one way I can think of doing this is adding a route specific to the IP that site is hosted on. See here on how to add a route permanently.

share|improve this answer

This is not a feature available to web browsers (not in Windows or, afaik, OSX anyway).

If you don't mind all traffic to a set of addresses going over that particular network card then you can create a static route using the route command to do this. If you've got some weird requirement to ping the website or upload files to it via FTP or SMB from one network card while accessing it via HTTP with the other network card then 1) You're boned and 2) I feel very sorry for you.

share|improve this answer

You need to make sure only one of your network cards has a default gateway. Windows are not really meant to have two default gateways. Since that defies the nature of default gateway (aka the place you go to get routed if the resource you want isn't on your local network.

You then need to set up your subnet masking on each of the two networks correctly, so that you can see the resources local to each that you need.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.