<p>In Windows XP:</p>

<p>How do you direct traffic to/from a particular site to a specific NIC?</p>

<p>For Instance: How do I say, all connections to stackoverflow.com should use my wireless connection, while all other sites will use my ethernet?</p>

[{'answer_id': 73545, 'author': 'Danimal', 'author_id': 2757, 'author_profile': 'https://Stackoverflow.com/users/2757', 'pm_score': 1, 'selected': False, 'text': '<p>you should be able to do it using the route command. Route add (ip address) (netmask) (gateway) metric 1</p>\n'}, {'answer_id': 73613, 'author': 'Jonathan Rupp', 'author_id': 12502, 'author_profile': 'https://Stackoverflow.com/users/12502', 'pm_score': 3, 'selected': True, 'text': "<p>I'm not sure if there's an easier way, but one way would be to add a route to the IP(s) of stackoverflow.com that explicitly specifies your wireless connection, using a lower metric (cost) than your default route.</p>\n\n<p>Running nslookup www.stackoverflow.com shows only one IP: 67.199.15.132, so the syntax would be:</p>\n\n<pre>route -p add 67.199.15.132 [your wireless gateway] metric [lower metric than default route] IF [wireless interface]</pre>\n\n<p>See the route command for more info.</p>\n"}, {'answer_id': 73621, 'author': 'Steve Moon', 'author_id': 3660, 'author_profile': 'https://Stackoverflow.com/users/3660', 'pm_score': 1, 'selected': False, 'text': "<p>Modify your routing table so that specific hosts go through the desired interface. </p>\n\n<p>You need to have a 'default' route, which would either be your ethernet or wireless. But to direct traffic through the other interface, use the command line 'route' command to add a route to the specific IP address you're wanting to redirect.</p>\n\n<p>For example, stackoverflow.com has the IP address 67.199.15.132 (you can find this by using nslookup or pinging it). Issue a route add 67.199.15.132 mask 255.255.255.255 a.b.c.d IF e\nwhere a.b.c.d == the IP address of the router on the other end of your wireless interface, and e is the interface number (a 'route print' command will list each interface and it's interface number).</p>\n\n<p>If you add the '-p' flag to the route command the route will be persistent between reboots.</p>\n"}, {'answer_id': 73670, 'author': 'Jay', 'author_id': 12479, 'author_profile': 'https://Stackoverflow.com/users/12479', 'pm_score': 1, 'selected': False, 'text': "<p>Within XP, I have often found that by adding/modifying static routes, I can typically\naccomplish what I need in such cases.  </p>\n\n<p>Of course, there are other 'high level' COTS tools/firewalls that might provide you  a better interface.</p>\n\n<p>One caveat with modifying routes - VPN tunnels are not too happy about chnages  in static routes once the VPN is set up so be sure to set it up at Windows boot up after the NICs are initialized through some scripting.</p>\n\n<p>Static routes- these will work fine, unless you are using a VPN tunnel.</p>\n\n<p>Windows 'route' help</p>\n\n<p>Manipulates network routing tables.</p>\n\n<p>ROUTE [-f] [-p] [command [destination]\n                  [MASK netmask]  [gateway] [METRIC metric]  [IF interface]</p>\n\n<p>-f           Clears the routing tables of all gateway entries.  If this is\n               used in conjunction with one of the commands, the tables are\n               cleared prior to running the command.\n  -p           When used with the ADD command, makes a route persistent across\n               boots of the system. By default, routes are not preserved\n               when the system is restarted. Ignored for all other commands,\n               which always affect the appropriate persistent routes. This\n               option is not supported in Windows 95.\n  command      One of these:\n                 PRINT     Prints  a route\n                 ADD       Adds    a route\n                 DELETE    Deletes a route\n                 CHANGE    Modifies an existing route</p>\n"}]
['https://Stackoverflow.com/questions/73518', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2744/']