Re: get MAC Address from IP

From: Gareth Watson (gw-ext_at_abs-ltd.com)
Date: 11/10/04


Date: Wed, 10 Nov 2004 17:32:01 -0000


"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:%238LW%23gUxEHA.3976@TK2MSFTNGP09.phx.gbl...
> "YAN" <YAN@discussions.microsoft.com> wrote in message
> news:9586DF60-A3BF-4C58-B94B-B59B7535F775@microsoft.com...
>> Hi,
>> I want to get the mac address from a machine, which i have the IP address
>> of
>> that machine, how can i do that?
>
> You can't. There's no relationship between the two.
>
> And besides, a machine may have multiple IP addresses and multiple MAC
> addresses.
>
> John Saunders
>
>

No relationship between MAC address and IP address? Did I read that right!
Of course there's a relationship how else would you move from layer 3 (IP)
to layer 2 (MAC).

In fact there is a whole protocol for this conversion. Its called ARP.

Basically ARP broadcasts on the segment asking all the devices to repond
with their MAC if they own the stated IP. This is a simplification of the
process but it is basically what happens.

I have no idea how to do this in .Net but saying there is no relationship is
clearly not the case.

Of course I may have misread your post but its all good factual stuff
anyway.

Cheers,

Gareth.



Relevant Pages

  • Re: So the Wintrolls dont believe Mac share is increasing...
    ... "Mac OS X can read and write FAT volumes, ... BSD components to sync Mac OS X with FreeBSD 4.4, ... Layers have been added on top of the BSD Unix operating system. ... "The bottom layer consists of the core environment layer, ...
    (comp.sys.mac.advocacy)
  • Re: So the Wintrolls dont believe Mac share is increasing...
    ... "Mac OS X can read and write FAT volumes, ... BSD components to sync Mac OS X with FreeBSD 4.4, ... Layers have been added on top of the BSD Unix operating system. ... "The bottom layer consists of the core environment layer, ...
    (comp.sys.mac.advocacy)
  • Re: Two Netgear WGT624 models will not communicate
    ... Translate what to the IP layer? ... | dramatically increase the leve of complexity of wireless. ... old 802.11b nameless bridge to work with the WGT624, ... passing on the MAC addresses (cheap nameless bridge might have a limit ...
    (alt.internet.wireless)
  • Re: So the Wintrolls dont believe Mac share is increasing...
    ... "Mac OS X can read and write FAT volumes, ... BSD components to sync Mac OS X with FreeBSD 4.4, ... Layers have been added on top of the BSD Unix operating system. ... "The bottom layer consists of the core environment layer, ...
    (comp.sys.mac.advocacy)
  • Re: ARP requests on my net?
    ... TCP works over all kinds of media. ... Yes, AIUI, TCP is layer 4. ... The MAC address lets ... everything that doesn't want your packet ignore it efficiently, ...
    (Fedora)