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 want to route all traffic to a website over my wireless connection while the rest of the traffic using my lan.

What I tried was first finding out the IP address of the website I want to go to.

For example, lets say I found it resolves to I have entered that entry into my hosts file. I then added that route using route add mask WirelessIP.

It doesn't seem to work however. Instead of using the IP address, is there a way that I can just say.. this URL to route over that connection?

Does anyone know of a program that I can install that will do this.. possibly some sort of proxy or a software load balancer that can do this?

share|improve this question
up vote 3 down vote accepted

What you did with the route add is exactly what you should have done, but I'm not quite sure what you did with the HOSTS file. You should not have needed to add anything to your HOSTS, so get rid of it.

The command you need to run to get the static route to work correctly is:

route add mask x.x.x.x

where x.x.x.x is your wifi IP address. Add a -p to that command to make it persistant (i.e. you don't have to add it each time you restart).

I've done this multiple times and it's worked just fine.

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.