Dec 30, 2008, 4:33 AM
Post #2 of 2
If the remote host is in the same subnet and network segment as your computer, you can reference the ARP table of your machine. You'll need to look at your OS's documentation to find out how to view your ARP table, as each OS is different.
Re: [Kishorerp] Same Subnet:MacAdress from IP Address
[In reply to]
However, if prior communication has not occurred between your computer and the remote host, your computer may not have an existing ARP entry, so you wont find anything. So you may need to send some data to the remote host and have it respond first.
You could use Net::Ping to ping the known IP address until it responds. As soon as it responds your computers ARP table will contain an entry which will tell you what the MAC address is of the remote machine.
(This post was edited by TomS_ on Dec 30, 2008, 4:34 AM)