Getting the MAC address of another computer based on its IP address

Possible duplicates:
how to find the MAC address in MAC OS X programmatically?
How to request ARP table on iPhone?

How can I get the MAC address of another device or computer if I know its IP address?

For example, I have:

NSString * ip = @"192.168.1.1";
+3
source share
1 answer

ARP ( ) . arp -a ARP, IP- (MAC-). OSX ARP , , , MAC-: , sysctl -, ? :" MACOSX (), , ...

OSX arp http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man4/arp.4.html: system IP-.

+1

All Articles