• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MAC Address of machine.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MAC Address of machine.


  • Subject: Re: MAC Address of machine.
  • From: Ryan McGann <email@hidden>
  • Date: Sun, 17 Nov 2002 22:04:02 -0800

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@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Table View Blues
  • Next by Date: Re: UndoManager
  • Previous by thread: Re: MAC Address of machine.
  • Next by thread: Re: MAC Address of machine.
  • Index(es):
    • Date
    • Thread