Skip navigation.
 
mlRe: MAC Address of machine.
FROM : Ryan McGann
DATE : Mon Nov 18 07:04:02 2002

On Sunday, November 17, 2002, at 05:44 PM, Peter Hudson wrote:

> I need to get the MAC address of the machine that my application is 
> running on.  I figured there must be a way in Cocoa to do it.
>
> Any help much appreciated.


Apple has several examples of how to do this on their web site:
   http://developer.apple.com/samplecode/Sample_Code/Networking/
GetHWEthernetAddr.htm
   http://developer.apple.com/samplecode/Sample_Code/Networking/
GetMACAddressSample.htm
   http://developer.apple.com/samplecode/Sample_Code/Networking/
GetPrimaryMACAddress.htm
All of these are C examples and can be used from Cocoa. The Cocoa 
frameworks itself do not have this capability that I'm aware of though. 
You'll need either the System Configuration framework or the IOKit 
framework added to your project.

Ryan
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlMAC Address of machine. Peter Hudson Nov 18, 00:27
mlRe: MAC Address of machine. Terence G4 Mac Nov 18, 04:16
mlRe: MAC Address of machine. Pierre-Olivier Lat… Nov 18, 04:48
mlRe: MAC Address of machine. Ryan McGann Nov 18, 07:04
mlRe: MAC Address of machine. Jerry LeVan Nov 18, 17:53