Re: get IP from MAC address
From: Chris (none_at_sorry)
Date: 09/03/04
- Next message: Alexander Nickolov: "Re: Log Out Issues"
- Previous message: Alun Jones [MSFT]: "Re: Log Out Issues"
- In reply to: AlexWavecom: "Re: get IP from MAC address"
- Next in thread: Alan J. McFarlane: "Re: get IP from MAC address"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Alexander Nickolov: "Re: Log Out Issues"
- Previous message: Alun Jones [MSFT]: "Re: Log Out Issues"
- In reply to: AlexWavecom: "Re: get IP from MAC address"
- Next in thread: Alan J. McFarlane: "Re: get IP from MAC address"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|