How do I tell Windows to use 802.11 in preference to 3G?

32

4

I have a Samsung NC-10 netbook which I take to work every day. Most of the time I use it just on the train/bus, but I also use it at work and home.

It has a built-in 3G card which I want to use when travelling, but I'd prefer to use wifi when I'm at work or home, for obvious reasons. Unfortunately, if the 3G connection is up, Windows appears to use that in preference to wifi.

Starting up and shutting down the 3G modem is a bit of a pain - it's not hard as such, just a bit inconvenient. Ideally I'd like it to always be up, and even have the connection itself up all the time, but without routing traffic through it if there's a wifi connection up. This is what my Android phone does, for example.

Is there somewhere in Windows which lets me express an ordering for network interfaces? I suspect the routing table may be relevant, but it's a bit of a pain to mess around with. I'd really expect there to be a simple GUI way of setting this up - after all, it would equally be useful when dealing with wired vs wifi connections.

I'm currently using Windows XP Home, but Windows 7 answers would also be useful as I'll be migrating soon.

Jon Skeet

Posted 2009-07-15T08:45:16.597

Reputation: 5 046

Possible duplicate of Make Windows 7 ignore WiFi when ethernet is available

– Santosh Kumar – 2015-11-22T11:26:07.653

I hope one day we can use SCTP (or something similar). Imagine transparent failover. Connections could survive switching from wifi to 3g and vice versa. – Tarnay Kálmán – 2011-03-28T10:48:25.243

Answers

19

You need to change the metric of the routes for the adapter. If you do 'route print' at a command prompt you should see the metrics for the various routes for your adapters. The route with the lowest metric will get used first when sending out traffic.

If you go into the networking control panel and into the TCP/IP settings for your wifi adapter and then to advanced their should be an option called 'Automatic Metric' you need turn this off and asign a metric yourself. Just set it lower than your 3G adapters metric

pjbelf

Posted 2009-07-15T08:45:16.597

Reputation: 526

@pjbelf, Nice, how did you come across this? – Pacerier – 2015-05-20T08:26:06.873

It's a little bit dodgy because the metric for the 3G card is 1, and that's the lowest I can set the wifi adapter to - but it seems to be working, so I'll accept this answer :) If you know how to change the metric for the 3G card as well, that would be even better... – Jon Skeet – 2009-07-15T09:29:08.410

Hmm... today it seems to be using 3G in preference... both interfaces having metric 1 is a pain :( – Jon Skeet – 2009-07-16T10:14:35.927

12Can't you change (increase) the metric of the 3G interface in the same way? This will "make space" for the wifi connection's metric to be lower. – tomfanning – 2009-07-17T13:05:06.800

5

In Windows Vista:

  • Open Network and Sharing Center
  • Manage network connections
  • Alt-N S (Advanced -> Advanced Settings)

You can change the provider order in here, however I am not sure if it affects routing to be honest. The other option would be to bridge the two connections, but then you don't have control of which connection is being used.

I did this on my Acer when I didn't have ADSL and only 3G and it worked, but there is no fine grained control I am aware of.

BinaryMisfit

Posted 2009-07-15T08:45:16.597

Reputation: 19 955

1Hmm - it's slightly different in XP: Control Panel -> Network Connections -> Advanced menu -> Advanced Settings... but it's there! Unfortunately, the 3G card isn't listed and "Remote Access Connections" is already at the bottom of the list. Looks like the right dialog though, so will play further. – Jon Skeet – 2009-07-15T09:10:15.100

3

How to change the binding order of network adapters in Windows XP and in Windows 2000 (http://support.microsoft.com/kb/894564)

It's useful also when you want to decide weather your VPN connection should be the first or not.

Piotr Dobrogost

Posted 2009-07-15T08:45:16.597

Reputation: 4 413

1

In Windows Vista/7, run "ncpa.cpl" In Windows XP, just goto Control Panel and open Network Connections.

The Network Connections window has an Advanced menu, select the Advanced Settings entry.

The Advanced Settings dialog box's Adapters and Bindings tab will show the order for preference in the Connections list box. move the wireless connection above the 3G or [Remote Access connections] entry.

icelava

Posted 2009-07-15T08:45:16.597

Reputation: 1 589

Unfortunately the "Remote Access connections" entry is already at the bottom, so I don't know why it's using it... – Jon Skeet – 2009-07-15T09:12:00.120

You should call that the "Internet properties". You can access that via the Tools menu from IE, but it's also in control panel, and can be opened from the "Change proxy settings" button in the "Under the hood" tabe of Google Chrome Options. Other browsers will probably also have ways to open the "Internet properties". :) – Bernhard Hofmann – 2009-07-15T09:16:47.113

0

First of all, to view your order of interfaces by the os, run "route print' on the command prompt.

The metric value displayed determines which interface comes first in ascending order. For your LAN connection to be chosen over a 3G connection on an XP machine, just go to your LAN interface properties, in the connection tab, choose "Internet Protocol (TCP/IP)" and click "Properties", instead of changing your IP address, click the "Advanced" button and at the bottom, uncheck "Automatic metric" then make the interface metric value "1".

You can leave the rest of the interfaces stay with auto metric. Apply changes to your LAN interface and that will resolve your issue.

Be careful as applying the changes refreshes your LAN connection.

Regards,

Chris Musasizi

user36443

Posted 2009-07-15T08:45:16.597

Reputation: