In article < XXXX@XXXXX.COM >,
You can do this by scanning the ARP cache, but only if the IP address is
on the local subnet and the local machine has recently communicated with
the IP address. The "Unix Network Programming" book should have a
section that explains how to read the ARP cache (you probably need to be
root to do it, though).
BTW, what do you plan on doing when multiple IP addresses map to the
same MAC address? This is not uncommon, due to IP aliases and proxy ARP.
Barry Margolin, XXXX@XXXXX.COM
*** PLEASE post questions in newsgroups, not directly to me ***