• Welcome to SCdev.org. Please log in.

Welcome to the new SCdev forums!

choosing internet connection

Started by anuarbin, October 05, 2007, 05:22:57 AM

Previous topic - Next topic

anuarbin

i have a lan connection and wireless connection. both can connect to internet
how can i quickly choose between the 2 for my connection?
having to remove the lan cable everytime i go wireless i very annoying.
i am running XP with intel centrino
yo cin

kkan

afaik there is no real easy option to switch a wired network for a wireless think about it with wired you have to make the physical connection to the pins inside the lancard/lan port

In fact can only think that the only way possible would be with a laptop that has some kind of base station thats wired that it clips into, and charges the laptop at the same time as connecting it back to a wired network built into the base :)


ratx

#2
I think he means he has both and wants a better way of forcing the use of one over the other...? You can always just right click on the LAN card in windows and disable it or I use a batch script and devcon to do that in a couple of seconds

run "devcon find =NET" on the command line to find your network interfaces eg for me:

[snip]
ROOT\MS_PSCHEDMP\0001                                       : Broadcom 440x 10/1
00 Integrated Controller - Packet Scheduler Miniport
ROOT\MS_PSCHEDMP\0002                                       : Dell Wireless 1390
WLAN Mini-Card - Packet Scheduler Miniport

Then I run "devcon disable @ROOT\MS_PSCHEDMP\0001" to disable the LAN card; replace disable with enable to re-enable it.


Devil_Spawn

you could always go

start->cotrol panel-> network connections
then disable and enable the two pieces of hardware

anuarbin

i know i can disable the connection.
but always pressing start bothers me (i am lazy)
Quote from: ratx on October 05, 2007, 04:11:55 PM
I think he means he has both and wants a better way of forcing the use of one over the other...? You can always just right click on the LAN card in windows and disable it or I use a batch script and devcon to do that in a couple of seconds

run "devcon find =NET" on the command line to find your network interfaces eg for me:

[snip]
ROOT\MS_PSCHEDMP\0001                                       : Broadcom 440x 10/1
00 Integrated Controller - Packet Scheduler Miniport
ROOT\MS_PSCHEDMP\0002                                       : Dell Wireless 1390
WLAN Mini-Card - Packet Scheduler Miniport

Then I run "devcon disable @ROOT\MS_PSCHEDMP\0001" to disable the LAN card; replace disable with enable to re-enable it.


better explanation please.
if i just paste "devcon find =NET" on the command prompt, devcon is not recognized as a command.
yo cin

mudlouse1

#5
if you have more than one connection to the same router, windows will decide which one to use but this could differ between programs. you cannot simply "switch" between connections whenever you feel like it without enabling/disabling the adapters in network connections (as mentioned by devil_spawn and ratx before the script talk).

the other method is to set the priority of each connection (for instance, to use LAN rather than wireless whenever possible). to do this, go to:

network connections > right click Local Area Connection > properties > select Internet Protocols > click Properties > in General tab click Advanced button > untick Auto metric > enter 0 for Interface Metric

now do the same with the wireless connection but enter 1 at the end. this basically prioritises your connection preference where lower numbers have higher priority. unfortunately, you cannot set this for individual programs and applications but it still works well.

anuarbin

Man. just what i wanted.
thank you mudlouse1!
problem solved!
yo cin

mudlouse1

no probs.

if you ever want to actively check which connection you're using, you look at the flashing network icons in the system tray. you can also go to the task manager (ctrl+alt+del) > networking tab and you get graphs for each active connection.