Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How does this actually work? How different ip addresses on ethernet adapter and wireless adapter are handled for internet data? I know these ip are translated in NAT table but the whole process involving ethernet and wireless adapter together is not clear to me.

share|improve this question

migrated from Jan 30 '10 at 21:54

This question came from our site for professional and enthusiast programmers.

this is not programming-related, and should be moved to – pixeline Jan 30 '10 at 21:50
In my experience, if you have an application open going through the wireless, then you connect a wired connection and open a new application, you can use both, but I expect it depends on the OS at that point. – James Black Jan 30 '10 at 21:53
@James: works exactly this way on Linux, used that some times for downloading of big files through LAN&WLAN. – whitequark Jan 31 '10 at 0:19

If (for packet that is sent by your machine) destination is not in LAN (DestAddress & Netmask != YourLANAddress & Netmask) it will be redirected to your default gateway, and if both of your devices are connected to the same network (if they have IP addresses belonging to same network actually; it is determined by the same algorithm) packet will travel through device with a lower metric.

share|improve this answer
That's interesting. Can you elaborate more on the metrics subject? How are they configured, by default, between wireless and LAN adapters? Or are they dynamically configured by the OS after identifying the fastest path? – cregox Mar 31 '10 at 21:15
AFAIK all 'real' network adapters (e.g. not TAP or loopback) get the same metric; and the OS would never do such a speed test at least because it cannot rely on some external host to be second measurement endpoint. – whitequark Apr 13 '10 at 2:14
without using the @ sign I could never see you "answered" my comment, unless I come here, like I just accidentaly did. now I don't even remember what I meant myself! :P – cregox Sep 21 '10 at 20:17
@Cawas: well, I hadn't knew about @ feature that time. :) – whitequark Oct 2 '10 at 17:09

It's entirely dependent on how your network interfaces are configured. The usual place where this is done is in a routing table, which lists the ethernet addresses of the adjacent nodes. Both might be used at once, or just one, depending on what this table says.

For example of one such configuration in MacOSX, see my question here:

share|improve this answer

I believe that one of the devices is set as a 'default' device. The other will basically sit there and do nothing. Double-click the little tray icon for your internet connection, it will tell you which one it is using...

share|improve this answer

From my experience in Windows XP (from having the network activity icons in the notification area) it seems smart enough to use the faster LAN connection as soon as it becomes available. Turn on the icons and see for yourself.

share|improve this answer

You must log in to answer this question.