Ask Different is a question and answer site for power users of Apple hardware and software. 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

Let's say that I have an iMac with a wired Ethernet connection and a WiFi connection at same time, on two separated LAN. Is this possible to ask Firefox to use the WiFi and Safari to use the Ethernet wire card ?

share|improve this question

No, this is not possible at the application level.

share|improve this answer
You are correct that in the general case, the OS doesn't have a provision for steering traffic on a per app basis, but web browsers have proxy server settings that can be easily abused to accomplish exactly what the OP asks. – bmike Aug 31 '11 at 2:33

You may not be able to do this at the application level (firefox, safari, chrome, etc)..but you can do this at the ip layer. You can add specific routes and secondary gateways to your networking configuration, but this won't be determined by the browser, it will be determined by the the IP incoming/outgoing and pick a network card after that.

share|improve this answer

Yes - browsers are a special case in that they allow you to choose a proxy to access the internet. This doesn't over-ride the default route by itself as you will need to set up a web proxy with a known address.

Another option would be to install a second OS in a virtualization container and letting that OS see the alternate interface. This would be a great solution if you have a speedy mac with plenty of RAM.

Back to (ab)using the proxy settings to work around the network splitting...

Assuming you are OK doing that, then you would use the /sbin/route command to send the browser you want on the non-default interface to go through the non-default gateway.

This assumes you have basic network knowledge and basic command line knowledge. Once it works, you could automate things - but it gets complicated quite quickly. It is possible with some specialized knowledge, but not something you can click a button or two and have traffic from any app ignore the default routing that the system is using.

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.