How to set which network connection application will use

ce7ec

Reputable
Aug 26, 2014
16
0
4,510
Hello everyone,
i have got a problem. I'm on school dormitory and we have bad internet connection here, so i have a mobile network, but i have FUP limit 3GB per month, so i can't use it all the time. So i want to use connection from my school dormitory for internet surfing (video, facebook, livestreams etc.) and my mobile net for gaming. So..
Is there any way to set my game (Steam, Game and league client) or internet browser which network they may use?

thanks for fast reply.
 
Solution
You can do it but it tends to be a little tedious and it is done by ip location not the program running.

So first thing to do is make sure you can get both network connected at the same time. You can not use the same IP address ranges.

From a cmd prompt running in admin mode issue ROUTE PRINT.

You should see both your connections and what ip range they are using. What you should also see is 2 entries for 0.0.0.0. It actually only uses 1 of these based on which interface has the better metric.

So step1 is to use the ROUTE DELETE command to get rid of the 0.0.0.0 entry for you 3g connection. This will force all traffic over the school connection.

Step 2 is the hard part. You want to find the ip addresses of the sites you...

ce7ec

Reputable
Aug 26, 2014
16
0
4,510
I think it's possible with using firewall. So i will disable using my 3G modem ip only for processes: Google chrome, Steam, torrent client. And i will disable school dormitory IP for "csgo.exe". Can someone help me how to do it?
 
If you configure the connections as different types, Public, Private, Home, you can set up rules for the programs to only use that connection. That may work automatically without disconnecting one or the other. But the issue is that once you turn on your 3G your computer will no longer be connected to the other network because it will get a different IP address.

Go to the outbound rules in the firewall and setup what you want for the programs you want, see if they will work properly.
 
You can do it but it tends to be a little tedious and it is done by ip location not the program running.

So first thing to do is make sure you can get both network connected at the same time. You can not use the same IP address ranges.

From a cmd prompt running in admin mode issue ROUTE PRINT.

You should see both your connections and what ip range they are using. What you should also see is 2 entries for 0.0.0.0. It actually only uses 1 of these based on which interface has the better metric.

So step1 is to use the ROUTE DELETE command to get rid of the 0.0.0.0 entry for you 3g connection. This will force all traffic over the school connection.

Step 2 is the hard part. You want to find the ip addresses of the sites you want to use on the 3g network. You can use a command NSLOOKUP www....com for each site to get the ip addresses. There are other ways to get the ip if you really get stuck but this is the simplest.

Now issue ROUTE ADD for each of these ip with a mask of 255.255.255.255 with a gateway of your 3g device.

This is ok for a small number but a 100 would not be workable. You I suppose could use a .bat file to issue it.

There really is no way to say if you use chrome you use one connection and if you use firefox you use the other. A game is a little simpler because you can figure out all the address say for steam and set those to use one connection.
 
Solution