force programs to connect through specific network?


  1. rde
    Posts : 2
    Windows 7 Home Premium x64
       #1

    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 Computer


  2. Posts : 2,298
    Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
       #2

    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.

    force programs to connect through specific network?-routing-table.png

    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 Computer


  3. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #3

    rde said:
    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 Computer


  4. Posts : 2,298
    Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
       #4

    chev65 said:
    rde said:
    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 Computer


  5. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #5

    Shadowjk said:
    chev65 said:
    rde said:
    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 Attached Thumbnails force programs to connect through specific network?-group-policy-using-two-connections-once.png  
      My Computer


  6. Posts : 2,298
    Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
       #6

    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 Computer


  7. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #7

    Here is Tanya asking for the same thing.
    Internet connection failover PPPoE & 3G - What software
      My Computer


  8. rde
    Posts : 2
    Windows 7 Home Premium x64
    Thread Starter
       #8

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 02:46.
Find Us