Solved

2 internet connections on 1 PC.

Posted on 2004-10-31
373 Views
Last Modified: 2013-11-29
Hi,
I have access to 2 internet connections from my pc. 1 is directly thru a cable modem connected to my pc. The other is thru an ADSL router/gateway which is sitting on my home LAN.
Is there any way to use both of them? I DONT want a certain program to use both together, rather i want to be able to decide which programs i run use which connection (From example I would want an application that is downloading something to use one of the connections, and a game i play online to use the other one). Is there any way/software to do this?
thanks in advance. (Im using winXP)
0
Question by:deniX23
    26 Comments
     
    LVL 49

    Expert Comment

    by:sunray_2003
    You can buy this

    Dual 10/100 WAN Router with 4 Port Switch
    http://www.hawkingtech.com/prodSpec.php?ProdID=101

    0
     

    Author Comment

    by:deniX23
    I need a software solution thanks. (How would that router btw allow me to have 1 program use 1 connection and another program use the second connection. My main problem that im trying to fix is that while i'm downloading something i can't play online games because my ping rockets to the sky).
    0
     
    LVL 49

    Expert Comment

    by:sunray_2003
    Well, if you use that hardware it is going to combine both of your internet broadband connections and you should be able to play online game and download at the same time.
    I am not sure what program you are planning and what you are downloading but with just one broadband connection you should be able to manage that.

    Are you saying you cannot do both at the same time or it is just slow.

    I guess windows xp should be able to support that hardware and give you high broadband connection.

    0
     
    LVL 4

    Expert Comment

    by:sriwi
    There is a metric settings on windows XP where you can specify which gateway you want to use, but i can't really relate that to the program that you want to run.

    will probably need further research on your problem there as in which protocol required to run the game, etc
    0
     
    LVL 5

    Expert Comment

    by:AutoSponge
    How is the cable modem connected, USB?
    0
     
    LVL 49

    Expert Comment

    by:sunray_2003
    sriwi,

    I think I missed that point. I guess with having that hardware router , denix23 should be able to use both the connections but that metric setting should tell windows xp which broadband connection to work on

    Metric setting should be here
    go to control panel > network connections > right-click "properties" > click on TCP/IP and then click on "Properties"
    go to advanced.
    At the bottom , uncheck "automatic metric" and give a number. I think if you give 0 for that it would be taken as higher priority..
    0
     
    LVL 5

    Expert Comment

    by:AutoSponge
    You can always set two default routes in your PC's routing table.

    0.0.0.0 to the cable modem metric 1
    0.0.0.0 to the adsl link metric 2

    Use the "route add" command

    This will try cable modem first and if it fails, go to the adsl link.  It's not smart or anything, but it should provide some failover.
    0
     
    LVL 4

    Accepted Solution

    by:
    0
     
    LVL 15

    Expert Comment

    by:Cyber-Dude
    0
     

    Author Comment

    by:deniX23
    Well from the post you directed to me sriwi I see that i CAN do it according to what he says because i do know the ip of the game server i am connecting to.
    So what i would do is let's say i want all programs to use my cable modem, and the game i am playing to use the adsl on the network, So i would Manually set the metric value of the lan card connected to my cable modem to a lower one then the one connected to my home network (and to the adsl router).
    Then i would have to create a static route for the IP of my game server to go thru the LAN card connecting to my home network.
    So how exactly do i do that last part? (the static route part).
    0
     

    Author Comment

    by:deniX23
    Cyber-Dude i was not able to understand what exactly that program does.
    0
     

    Author Comment

    by:deniX23
    I guess I would use "route add" and specify my game server IP as the destination and direct it to the interface which is my lan card? would this work?
    Anyway i would still rather have a way to decide exactly which programs use which interface (even without knowing the destinaion ip's). So if anyone knows a way please let me now, and if by tomorrow I see there is no way i'll give you the points sriwi, thanks.
    0
     
    LVL 4

    Expert Comment

    by:sriwi
    static route: in windows command prompt: route add

    or route ? to get help first

    hope that helps you
    0
     
    LVL 4

    Expert Comment

    by:sriwi
    Denix23: if you got it working, can you let us know.

    cheers
    0
     

    Author Comment

    by:deniX23
    btw is there anyway to route specific ports to a certain interface rather than route a specific IP?
    0
     
    LVL 49

    Expert Comment

    by:sunray_2003
    deniX23,

    One more thing. Dont you want to combine both internet connections and work for certain applications or
    your goal of this question is

    application A = use Broadband 1
    and
    application B = use Broadband 2
    0
     

    Author Comment

    by:deniX23
    The latter is my goal
    0
     
    LVL 79

    Expert Comment

    by:lrmoore
    Speaking for Windoze platforms (all flavors):
    There is no way for an application to manipulate the routing table. Period.
    There can be one and only one default gateway. Period.
    The lowest metric gateway is used always by all applications.
    As long as you know the IP address of the destination, you can manually create a route table entry to route to that destination via a different gateway. Demonstration:
       C:\>route add 0.0.0.0 mask 0.0.0.0 192.168.122.1 <-- default gateway pointing to cable router
       C:\>route add 12.34.56.7 mask 255.255.255.255 192.168.122.222
                             ^^^^                                             ^^^^
                           Destination IP                                  IP address of gateway (DSL router), not your lan card
    After making those
    C:\WINDOWS>route print
    ===========================================================================
    Interface List
    0x1 ........................... MS TCP Loopback interface
    0x2 ...00 0c f1 ce 0e 22 ...... Intel(R) PRO/1000 MT Network Connection - Packet Schedul
     Miniport
    ===========================================================================
    ===========================================================================
    Active Routes:
    Network Destination        Netmask          Gateway       Interface  Metric
              0.0.0.0          0.0.0.0              24.24.24.1           24.24.24.24            20    <== "auto" metric makes this "20"
           12.34.56.7  255.255.255.255      192.168.122.222  192.168.122.150       1    <== static route via DSL router
            127.0.0.0        255.0.0.0                      127.0.0.1       127.0.0.1            1
      192.168.122.128  255.255.255.128  192.168.122.150  192.168.122.150      20
      192.168.122.150  255.255.255.255        127.0.0.1       127.0.0.1       20
      192.168.122.255  255.255.255.255  192.168.122.150  192.168.122.150      20
            224.0.0.0        240.0.0.0           192.168.122.150  192.168.122.150      20
      255.255.255.255  255.255.255.255  192.168.122.150  192.168.122.150       1
    Default Gateway:   192.168.122.132
    ===========================================================================
    Persistent Routes:
      None
    0
     

    Author Comment

    by:deniX23
    Is there anyway to control to which gateway outgoing tcp/udp packets are sent? (for example outgoing packets on port 1000 goto gateway a, everyone else goto gateway b?)
    0
     
    LVL 49

    Expert Comment

    by:sunray_2003
    deniX23,

    adding value to this question, take a look and see if it makes sense

    An Explanation of the Automatic Metric Feature for Internet Protocol Routes
    http://support.microsoft.com/?kbid=299540
    0
     
    LVL 79

    Expert Comment

    by:lrmoore
    >Is there anyway to control to which gateway outgoing tcp/udp packets are sent?
    Not inherently, but if you have XP, you "may" be able to use the TCP/IP filtering feature to deny udp 1000 on one network connection but allow it on the other.
    Use at your own risk, your mileage may vary..
    It still boils down to the destination IP. If there is no specific route to that destination IP, then it has to go out the default, where you've denied those packets -- catch 22...



    0
     
    LVL 79

    Expert Comment

    by:lrmoore
    If you had a Cisco router, this would be a piece of cake..it's an advanced routing function that Cisco excells at. But alas, Microsoft doesn't sell routers, only desktop and server operating systems, and software applications (none of which are guaranteed to work together).
    0
     
    LVL 15

    Expert Comment

    by:Cyber-Dude
    Sorry for the late response; CDExpress is LAN-based traffic management and load balancing software.

    And yet, heres an intresting software:
    http://www.itworx.com/ITWorx/News/Press+Releases/pr_NetCeleraSpeedArray.htm

    Try those; If you want additional software, just say so.

    Cyber
    0
     
    LVL 2

    Expert Comment

    by:kidoman
    Hi,

    I might have a hack-solution for this:

    for downloading something create a .bat file which adjusts the metric and set a lower value to the gateway you want to use for downloading. Let the download start. Once u have that setup working, you then create another .bat file corresponding to the game exe. Then readjust the metric so that the preffered gateway is used.

    Mind you this is a complete hack. More elegant solutions are possible and those dont require you to use Cisco router (although I do agree, these would be a piece of cake in Cisco but that again would only segregate downloading from interactive use., but not application wise selective ness.)

    However those more elegant solutions are:

    - Use a linux machine in the network with 3 LAN cards (one for local home lan, and the two for the two inet connections. it is a very involved step.)
    - Otherwise "just download in night, and play during morning." No offence. The problem is, because of the "user-friendly-ness"        Windows dosent permit many manipulations which are considered basic in other platforms.

    Cheers,

    karan
    0
     
    LVL 79

    Expert Comment

    by:lrmoore
    Wow! Post a link to something that I wrote, and then getting credit for answering this question...
    Bah, humbug!
    0
     
    LVL 49

    Expert Comment

    by:sunray_2003
    Ah.. Thought it happens ONLY in Windows XP TA and thats why I came here but seeing XP is not alone
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    SSL is a very common protocol used these days when browsing the web.  The purpose is to provide security to communication, but how does it do it?  There are several pieces at work that have to be setup before SSL will even work and it requires both …
    This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
    Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
    After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now