Hello, I am new to Mac OS X and X code and want to know how to find the MAC address of a machine programmatically in OS X.
A:
See: http://stackoverflow.com/questions/677530/how-can-i-programmatically-get-the-mac-address-of-an-iphone. Should work (although originally asked for iPhone).
Kevin Sylvestre
2010-08-09 16:55:07
yes..I have gone through that post, but will it work for iMac and MacBooks too? Also if I am not wrong it would be a command line application, right? Thank you.
Aniket
2010-08-09 18:55:59
It should. Have you tried it?
Kevin Sylvestre
2010-08-10 06:55:20
A:
There's a sample from the Mac OS X Reference Library that gets the MAC address of the primary, built-in interface from the I/O Registry. It also includes an Xcode project.
Pedro d'Aquino
2010-08-10 12:39:57