1

My computer is connected to 2 networks, first via ethernet, and second via USB WiFi.

In the first network there is no internet, there are only local applications that I need to use for my work and local sites.

When I want to internet access I change networks order to USB WiFi first but then I loose contact to local sites and applications.

Is there any way to tell a program, for example Google Chrome, to use only second network and all other applications use the first network?

2

Best route to take (pun intended) is to setup routing, so your computer know what interface to choose to contact to network in question..

So your default gateway should only be set to the gw on your internet-facing network. The internal network should not have a gateway specified. You should manually specify all the subnets you need to reach and use whatever gw you have on the other network.

It's kind of hard to give more detailed information without knowing more about the environment.. Like how many subnets you need to reach on the interface that isn't connected to the internet. If there is only one, you shouldn't need to do anything, since it doesn't require it.

I also assume that you don't use the same IP-ranges on both networks..

-1

You cant do this with Windows natively. You need a 3rd part application. ForceBindIP will do this. Here are some good directions.

  • 1
    Thank you, but I need for macos. – Narek-T Sep 26 '17 at 9:03
  • @Narek-T then you should put that in your question – Keltari Sep 26 '17 at 9:03
  • 1
    I already have macos in tags ;) And before edit title of question was "os x - How to force some applications to use second network in Network->Service order?" – Narek-T Sep 26 '17 at 9:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.