Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: force programs to connect through specific network?


23 Aug 2013   #1
rde

Windows 7 Home Premium x64
 
 
force programs to connect through specific network?

I have 2 networks available with internet access, one is my land line and the other is 3G.

So is there any way to force a program to always use the same network when it connects to the internet?

My end-game is to use the networks for different specific tasks.

Thanks in advance for any replies!

My System SpecsSystem Spec
.

24 Aug 2013   #2

Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
 
 

To my knowledge it isn't possible unless third party applications are used .

When faced with multiple interfaces the machine will first use the destination IP address in order to determine which interface to use. Normally this is used so that you can access machines that are in different subnets. In terms of the interent the machine will have a default route (0.0.0.0) which means if it is faced with an IP address that isn't on its LAN (Typically an internet IP address) the machine will forward the information to the router. In multiple interface environments you may have two default routes to different routers. In your case, one to the LAN wired connection and the other on the 3G connnection. If a machine is tied between two different routes it will use the metric to determine the best path to take. Normally a wired connection will have a lower (better) metric than a 3G connection so the machine will use that interface to connect to the internet.

Name:  routing table.png
Views: 7
Size:  55.7 KB

The only possible way that I could think that this would work would be to either change the metric of the connection that you wish to use so that it is the lowest forcing your machine to use that connection or to disable any interfaces that you don't wish to use when connecting to the internet which will then force the machine to use the only possible router that it can communicate with.

Hopefully this will help explain how a machine determines what interface to use when faced with multiple connections to the internet and maybe someone knows a third party software solution to complete such task

Josh


My System SpecsSystem Spec
24 Aug 2013   #3

Windows 7 Ult, Windows 8.1 Pro,
 
 

Quote   Quote: Originally Posted by rde View Post
I have 2 networks available with internet access, one is my land line and the other is 3G.

So is there any way to force a program to always use the same network when it connects to the internet?

My end-game is to use the networks for different specific tasks.

Thanks in advance for any replies!
There is software for this called Connectify Dispatch where you can combine the bandwidth of Ethernet or wifi plus 3 or 4G.

I'm not completely sure how the per program routing is handled by you should be able to configure it for this.

Connectify Dispatch - The Software Internet Load Balancer
My System SpecsSystem Spec
.


24 Aug 2013   #4

Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
 
 

Quote   Quote: Originally Posted by chev65 View Post
Quote   Quote: Originally Posted by rde View Post
I have 2 networks available with internet access, one is my land line and the other is 3G.

So is there any way to force a program to always use the same network when it connects to the internet?

My end-game is to use the networks for different specific tasks.

Thanks in advance for any replies!
There is software for this called Connectify Dispatch where you can combine the bandwidth of Ethernet or wifi plus 3 or 4G.

I'm not completely sure how the per program routing is handled by you should be able to configure it for this.

Connectify Dispatch - The Software Internet Load Balancer


Good find! Will have to try it out myself
My System SpecsSystem Spec
24 Aug 2013   #5

Windows 7 Ult, Windows 8.1 Pro,
 
 

Quote   Quote: Originally Posted by Shadowjk View Post
Quote   Quote: Originally Posted by chev65 View Post
Quote   Quote: Originally Posted by rde View Post
I have 2 networks available with internet access, one is my land line and the other is 3G.

So is there any way to force a program to always use the same network when it connects to the internet?

My end-game is to use the networks for different specific tasks.

Thanks in advance for any replies!
There is software for this called Connectify Dispatch where you can combine the bandwidth of Ethernet or wifi plus 3 or 4G.

I'm not completely sure how the per program routing is handled by you should be able to configure it for this.

Connectify Dispatch - The Software Internet Load Balancer


Good find! Will have to try it out myself
To bad it costs a few bucks but I keep seeing people with 3G and another ISP connection asking for this type of software.

There are some Group Policy settings that allows the use of two connections at the same time but without this type of software I don't see how it would do any good.


Attached Thumbnails
force programs to connect through specific network?-group-policy-using-two-connections-once.png  
My System SpecsSystem Spec
24 Aug 2013   #6

Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
 
 

Aye, still it's something I didn't know was possible. It'd be interesting to see how it handles the difference in bandwidths.

As for the group policy, that's probably used in organisations to stop users evading proxy servers and firewalls when connecting to the internet however I can't be for sure and is just a rough guess.

Josh
My System SpecsSystem Spec
25 Aug 2013   #7

Windows 7 Ult, Windows 8.1 Pro,
 
 

Here is Tanya asking for the same thing.
Internet connection failover PPPoE & 3G - What software
My System SpecsSystem Spec
27 Aug 2013   #8
rde

Windows 7 Home Premium x64
 
 

Thank you all for the input, this topic has been very helpful. After having done some research and testing I ended up going with Shadowjk's first suggestion to change the metric values, it functions as a decent workaround for now because one of the program I'm currently running is actually able to use a network device exclusively, however a long term solution to my problem remains to be found.

Can't tell for sure if Connectify would have worked, I'm not quite prepared to invest so much into 3rd party software, but appreciate the link none the less.

Among other things I tried "ForceBindIP" freeware, but it only works with applications programmed with the windows socket API, so it was of little use to me right now.

If anyone stumbles upon this post in the future with new information please post it!

-rde
My System SpecsSystem Spec
Reply

 force programs to connect through specific network?




Thread Tools



Similar help and support threads for2: force programs to connect through specific network?
Thread Forum
How to force my Intel Proset WLAN to connect with 802.11n speed? Network & Sharing
[Q] Make Windows Connect to Specific Wifi Network After 60 seconds? Network & Sharing
Solved Cannot Connect to a specific wireless network. Network & Sharing
Force connect to range extender Network & Sharing
Solved Possible to force wifi connect before Win7 looks for LAN drives? Network & Sharing
Force a program to use a specific DNS Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:45 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33