Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kevhui

macrumors regular
Original poster
Apr 24, 2008
172
0
Hi,

My iMac is connected to a router, and also Airport Express thru the same router. Just wonder when a open a web browser, which interface am I using?


Thanks.
 
Go into 'Network' in System Preferences. You should see your 'Built-in-Ethernet' and 'AirPort' connections in the list on the left with green lights.

Whichever is at the top is the default interface. To change it click the cog and select 'Set Service Order' then you can drag them around into the preferred order, then click 'Apply' to active the changes.

You can check this in the terminal by looking at the default route for connections. Do this
Code:
$ netstat -rn | grep default
default            192.168.0.1        UGSc       51     8574    en2

In this example 192.168.0.1 is the router and the last field indicates the interface being used. In this case 'en2' is the wireless card on this machine.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.