Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 a 3G wireless modem and I have a LAN - Right now they are both connected.

I need a way to choose which applications will use the 3G connection and which applications will use the LAN.

My Operating System is windows 7. How can I do this? Any ideas?

Here is a route print: - the 3G modem's IP is

Lets say, for example, map to using the 3G internet connection.

IPv4 Route Table
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
    286         On-link    286         On-link    286         On-link    286         On-link    306         On-link    306         On-link    306         On-link    276         On-link    276         On-link    276         On-link    306         On-link    276         On-link    286         On-link    306         On-link    276         On-link    286
share|improve this question

migrated from Mar 9 '12 at 1:41

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

Why do you want to do it? – kinokijuf Dec 9 '12 at 11:02

Windows always controls which network connection is used. If you have multiple active network connections to the same network, then Windows will use the first one listed under Network and Sharing Center->Change adapter settings. Other network connections are unused.

If you have two network adapters and you wish to force the usage of one specific adapter, then there are two cases to consider.

1. Application uses a known website

If a given application uses only one or several known websites, and if the wired and wireless networks use different ranges/segments of IP addresses, you can use the IP address of the website(s), together with the route command to add entries in the local IP routing table that will direct such requests to these addresses through a given adapter.

For example,

route add mask

will send all the traffic for 88.99.x.x to the next hop address of, which could be the address of the router. The router will have in this case two IP addresses over the wired and wireless segments. Traffic that doesn't match a route is sent to the default route normally associated with the first adapter in binding order.

This technique makes Windows use both network adapters indirectly, by actually placing each on a different network (e.g., 192.168.1.x and 192.168.2.x). If certain resources are only available on one or the other network or have routes leading to one or the other, then obviously Windows chooses the appropriate network connection.

This way doesn't control directly which network adapter is used on a per application/service basis. But there is a second solution.

2. Using a virtual machine

If you install a virtual machine manager like VirtualBox, you can create a guest virtual machine (VM) and connect its virtual network adapter to any of the host's physical ones.

This way, any application started in the VM will use the designated adapter, no matter its position in the host's adapter table, so you can divide network activities by choosing between host or guest as the execution media, while both host and guest can share files through network shares.

Windows 7 has XP Mode, which is actually a closely-integrated virtual machine. Although quite lame as virtual machines go, it might be possible to use it this way (or not, as I never tried).

share|improve this answer
Ty for responding, the route idea seems great but I don't understand how to set a route correctly - I get an incorrect parameter error. Let me give you some details: 3G IP : / 3G Subnet Mask: / 3G Gateway: - and the IP of the site, lets say is Can you please show me how to properly add this route? Ty – webmasters Dec 11 '12 at 15:34
It should be something like : route add mask (google is If this doesn't work check your metrics with route print, as the route with the lowest metric wins. – harrymc Dec 11 '12 at 17:55

Check this tutorial out. It uses ForceBindIP to force an application to use a specific network card. The only disadvantage is that you have to run your programs with ForceBindIP each time you start them.

share|improve this answer
Very interesting find, but last release is from 2009. – harrymc Dec 13 '12 at 8:09
If it works, it works! :) – ChrisN Dec 13 '12 at 20:41
It's not working anymore on Windows 8.1. – Saeed Apr 3 '15 at 13:13

It hasn't been released yet, but Connectify Dispath promises to do just that:

Edit: It's been released now.

share|improve this answer

If each application is only going to go to specific destination IPs, you can add static routes to Windows' routing table for the target addresses.

share|improve this answer
How to do this exactly? – Mohamed Sakher Sawan May 22 '12 at 15:04

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.