The stupid question is the question not asked | |
PerlMonks |
Re: Getting Ip Addressby Joost (Canon) |
on Apr 04, 2007 at 19:57 UTC ( [id://608362]=note: print w/replies, xml ) | Need Help?? |
this link says that you can't do this generally, but that you can get the mac address from visited IPs in the arp cache.
Depending on your OS, you can get at that information in different ways. My linux box seems to store the IP/MAC info in /proc/net/arp, for instance. I have only one machine running here at the moment so it only shows my own address:
I suppose that you could ping all the IP addresses in your local subnet and then check the arp cache for matching MAC addresses.
In Section
Seekers of Perl Wisdom
|
|