119

When I dock my Windows 7 laptop, I want it to prefer the wired ethernet connection over WiFi.

This is a pretty straightforward thing to do on my Mac - I just reorder my network preferences, and it "does the right thing." I just can't figure out how to achieve the same thing on my Win7 laptop.

So, when I'm docked, it connects to WiFi, and then fails to connect to servers on the local wired network. How do I fix this?

jkooker
  • 1,357

10 Answers10

115

It's on Windows 7, but it's pretty well hidden.

Go to Control Panel -> Network and Sharing Center -> Change adapter settings -> The hit Alt to get the menu and choose Advanced -> Advanced Settings.

Then you can re-order your connections in that list.

Although Windows should already automatically prefer your wired over your wireless connection. It chooses what adapter to use based on the lowest interface metric, and a wirelesss connection should have a higher metric than your wired. Run route print from the command prompt to see that.

shf301
  • 7,972
28
  1. Click Start and, in the search field, type View network connections.
  2. Press the ALT key, click Advanced Options and then click Advanced Settings.
  3. Select the Wireless Connection and move up for top priority.
pulsarjune
  • 1,299
18

Go to Control Panel -> Network and Sharing Center -> Change adapter settings -> Then 'Right Click' on the Wireless network and select Status Then click Wireless Properties and make sure that if you have it set to connect when in range that it is also set to connect to Connect to a more preferred network if available.

14

Two things: first, you can add a metric to each interface to specify that one is better than another. Using the GUI, go to your network connection's properties, TCP/IP, Advanced, uncheck Automatic metric, and fill in the appropriate number. Since the metric represents a cost, Windows will automatically use the interface with a lower metric if it can't decide. This KnowledgeBase article describes the feature you're disabling.

Second, you shouldn't ever have a problem that requires one interface to be used over another. If both interfaces are the same network, then you'll always want the fast one. If they're different networks, then routing tables will automatically send packets out the proper interface to reach the network they belong to.

Perhaps you have two physically separate networks with the same IP block? This is a misconfiguration, and you should fix it.

Michael Lowman
  • 816
  • 4
  • 11
2
  1. Go to Control Panel > Network & Internet > Network Connections
  2. Right click on your Wifi Network Adaptor usually titled "Wireless Network Connection"
  3. Select Properties
  4. Click on the "Configure" button
  5. Select Advanced tab
  6. Under "Property" Scroll down to "Disable Upon Wired Connect" and highlight it
  7. On the Right-hand side under "Value", select "Enabled" in the drop down menu
  8. Hit OK
  9. Disable then Enable back Wireless Network Connection.
Kevin
  • 21
1

If you have a wireless switch on your laptop, you may want to turn that off. Another thing you can look at is whether your ethernet port is operational in the device manager. You can also set this up through your internet options as well.

w7pro
  • 692
1

I got it working by setting the metric setting to 10 for wired and 1000 for wifi, all the other suggestions I found didn't work.

Mokubai
  • 95,412
Morbia
  • 111
1

Simple way to disable the wireless is windows button+X, turn off wireless. Repeat process to turn it back on.

0

My problem was that DHCP was not enabled for my LAN Connection - ran the troubleshooter, it turned it on and all is well now.

AVH
  • 101
0

i had a similar problem at home when i ran an ethernet wire to my computer after using wireless for a long time. my wifi was set to connect automatically, even though i had an ethernet connection.

my solution:

  • control panel
  • network sharing
  • change adapter settings
  • right click on wireless network, while connected
  • click status
  • wireless properties
  • uncheck "connect automatically when this network is in range"

not exactly the same but someone might find this usefull.

jkooker
  • 1,357