Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i Get MAC address from IP ?

Status
Not open for further replies.

zanoon

Programmer
Feb 7, 2002
4
EG
hi every body,
i ping a computer and want to get it's MAC address.
Can i get it from ICMP-ECHO replay
thanks
 
Hi, I can't answer this off the top of my head but I know where you could probably find the answer straight away. Go to Apple's web site at and click on the developer link. In there somewhere you'll find PDF versions of each of the "Inside Macintosh" technical reference manuals for programmers. These books normally cost around $30-40 on the shelf but are available free to download in PDF format.
I believe the one you need is "Inside Macintosh: Communications". These books delve deep into all the Mac Toolbox functions and I've used them religiously in the past for my Mac programming.
Also, you'll find on Apple's web site many sample applications and code (in C/C++) for doing certain things. Much of it can be used freely in your own porojects.

Hope this helps!
 
if the computer is in the same segment as yours, you can use "arp -a"

if you want to get the mac address programatically, investigate NetWkstaTransportEnum() function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top