Re: get IP from MAC address

From: Chris (none_at_sorry)
Date: 09/03/04


Date: Fri, 3 Sep 2004 18:59:06 +0200


> Search for GetIpAddrTable / GetAdaptersInfo declared in Iphlpapi.h.

Sorry to correct you Alex,
GetIpAddrTable is used to get the local arp cache mapping. Not to retrieve
the IP address using the MAC address.

thc, what you can do if you don't want to use InverseARP (as I wrote in the
posting from 2.9.) is ping the broadcast address and then check the local
arp cache usng GetIpAddrTable. Some ICMP implementations will respond on
such a ping request. And the machines who answer will then be in your local
arp cache (which you can also view using "arp -a"). But as I said, only some
implementations will respond to a broadcast ping.

--
Chris
www.chrismc.de


Relevant Pages

  • Re: Getting an IP address from a MAC address
    ... > from a MAC address??? ... responding to the ping don't exceed the size of your ARP cache, ... Evaluating SSL VPNs' Consider NEOTERIS, chosen as leader by top analysts! ...
    (Security-Basics)
  • Re: Network Security
    ... Looking in your ARP cache after trying to ping will show this problem. ... the networks. ... the security guards and a couple of network ...
    (linux.redhat)
  • Re: Query ARP Cache in vb.net
    ... do away with the ping bit of my code. ... >> I had planned to query DHCP on the WAN to get the MAC addresses, ... >> are security restrictions in place that will restrict this. ... >> Does anybody know how to query the ARP Cache with vb.net code? ...
    (microsoft.public.dotnet.general)
  • Re: network unreachable
    ... > Alexandru Cabuz wrote: ... >> When I try to ping B from A I get ... and possibly take a look at the arp cache with arp. ...
    (Debian-User)