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

How might I force traffic to a specific IP address through a particular network interface, in Windows?

After a bit of rudimentary Googling, this question comes close to answering my question, but my situation is a bit different -

I'm a bit confused by his question/answer because I'm not quite sure how I would identify which interface has the higher metric.

Usage case - I have an iPhone 5 w/LTE connectivity, and I want to use RDP to connect to a specific (and static) IP address. All other traffic, as usual, should travel through the corporate LAN, but initiating an RDP connection to this particular IP address (my home computer) should use the iPhone's network adapter interface.

How might I accomplish this with the route command?

some example IP addresses:

My corporate LAN IP - My iPhone 5 IP -

share|improve this question
up vote 2 down vote accepted

You would want to set up a route for static IP with a netmask of and a gateway of

route add yourSpecificStaticIP mask

This will route traffic to yourSpecificStaticIP over the iPhone network interface. You will need to remove the route if at any point you do not want to use the iPhone, and you will need to recreate the route any time you reboot your machine, unless you use the persist (-p) option.

share|improve this answer
Perfect, thank you! – Alex Karpowitsch Apr 19 '13 at 16:25

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.