Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two working network connections: One connection is for a wired ethernet card adapter and the other is for a wireless usb adapter.

Both connections work fine when used separately, but when both are enabled, the wireless connection doesn't work.

  • The wired connection obtains its IP address via DHCP through gateway 192.168.1.1 - The DHCP range for this router is 192.168.1.100 - 192.168.1.149

  • The wireless connection obtains its IP address via DHCP through gateway 192.168.6.1 - The DHCP range for this router (Android phone acting as wireless hotspot) is 192.168.6.106 - 192.168.6.XXX with 8 allowed connections. (I'm also having trouble figuring out how to determine which IP addresses are reserved for DHCP when using this hotspot - here's another question I posted about this problem)

If both connections are enabled, the computer will have two separate IP addresses. For example, the wired connection will be assigned 192.168.1.101 and the wireless connection will be assigned 192.168.6.148

There isn't a direct conflict of IP address obviously, but I can't get internet access until I disable the wired connection.

Does anyone know what the problem is here and how I can fix it without having to disable and enable the wired connection every time I need to switch between the two adapters?

share|improve this question
    
Could it be some sort of security software like a firewall? What exactly happens when it “doesn’t work”? Can you ping? Do all protocols fail (FTP, P2P, NTP, etc.) or is it just browsing (HTTP)? Can you check your email? Have you tested to see if specifying the connection to use works? –  Synetech Jul 1 '13 at 18:51
    
Could you add your routing table? (route print). Also, can you describe more about what you're doing and why you need both connections? –  Aquadisco Aug 3 at 0:13

2 Answers 2

There is no easier way to do what your asking. You can be connected to both wired and wireless connections, but will only be able to get internet through one. The way you would do that is to define a static IP on the connection you want to use. This is essentially just enabling and disabling an adapter as you have been. In short, your computer needs to know exactly where it is getting internet from, if you define two sources it will either not work or prioritize a wired connection as it supports higher bandwidth.

Just give it some thought, what would having internet via wireless AND wired connections mean? You have TWO internets? You just have internet? I think the latter prevails

share|improve this answer
    
I understand, but I've had this setup in other situations where, as you said, one connection was given priority over another. In this case, my wired connection - although connected to the router - is not connected to the internet. They should have written some better logic in whatever code is executed that tells the computer which network adapter to use for internet access! –  user234831 Jul 1 '13 at 14:13
    
The reason it works the way it does is because if you have a wired connection it takes priority, end of story. Its faster. If you then lose connection via wired, it won't automatically toggle to your wireless connection because it leaves you no indication that you lost wired connection, and it assumes a lot by thinking you then want to go to a wireless connection. You could add an option sure, but then what if no wireless connection exists? The logic itself would be boilerplate. Also this could be your wireless USB adapter drivers that force this behavior further –  Jason Bristol Jul 1 '13 at 14:26

I'm not sure what version of Windows you are using, but this may help:

  1. start ncpa.cpl or View network connections from the Start/Windows button.
  2. ALT-N S for Advanced->Advanced Settings...
  3. Under Adapters and Bindings should be Connections, which lists the connections Windows will try to use and in what order. You can try to change the preference order there.

If that doesn't work, then it's as @Jason Bristol says; whichever connection got an address last will have preference in Windows' single-instance routing table.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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