Remote mac address

M

Matias Surdi

Anyone knows how having the IP address of a host on the lan could I get
the mac address of that hosr?


p/d: Parsing the output of arp -a is not an option.

Thanks a lot!
 
F

Frank Stutzman

Matias Surdi said:
Anyone knows how having the IP address of a host on the lan could I get
the mac address of that hosr?
p/d: Parsing the output of arp -a is not an option.


What kind of system?

On linux and probably several other unix-like systems you could (if
you had permission) parse the /proc/net/arp file. Granted this isn't
terribly far off from parsing the output of 'arp -a', but at least
it keeps you from spawning a shell to run the 'arp -a' in.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top