• 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: Getting MAC Addresses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting MAC Addresses


  • Subject: Re: Getting MAC Addresses
  • From: Josh Graessley <email@hidden>
  • Date: Thu, 4 Oct 2007 15:54:20 -0700


A better approach would be to use getifaddrs.

getifaddrs won't satisfy your requirement of finding BlueTooth MAC addresses. BlueTooth is not a network interface, so it doesn't show up in the getifaddrs list. It's possible a PAN module may create a network interface for the BlueTooth hardware and list the MAC address, but don't count on that.

You may need to poke through the IORegistry to get the BlueTooth MAC address. Why anyone would want anything to do with BlueTooth is beyond me.

-josh

On Oct 4, 2007, at 3:49 PM, Mathias Sulser wrote:

You could do 'ifconfig | grep ether' on the shell..

Mathias

On Oct 4, 2007, at 4:36 PM, David Burgun wrote:

Hi,

How can I get the MAC addresses of all appropriate devices on a system? e.g. if a system has Ethernet and BlueTooth, I want the MAC address of both devices.

Thanks in Advance
All the Best
Dave

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Getting MAC Addresses (From: David Burgun <email@hidden>)
 >Re: Getting MAC Addresses (From: Mathias Sulser <email@hidden>)

  • Prev by Date: Re: Getting MAC Addresses
  • Next by Date: RE: (no subject)
  • Previous by thread: Re: Getting MAC Addresses
  • Next by thread: URL Spider using NSURL
  • Index(es):
    • Date
    • Thread