• 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 the ethernet address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the ethernet address


  • Subject: Re: Getting the ethernet address
  • From: Josh Graessley <email@hidden>
  • Date: Tue, 31 May 2005 15:43:04 -0700


The hardware address of the packet is not available to the application. Why do you want to do this?


You can look up the MAC address for various IP address in the routing table. You can look at the source for the arp command to see how to do this.

You can use getifaddrs <x-man-page://3/getifaddrs> to get the MAC address for the various interfaces on the local machine.

-josh

On May 31, 2005, at 3:28 PM, Alex Kettner wrote:

Hi,

I currently have some code running that sends out a UPD broadcast to a specific port and waits for responses back. I can get the IP address of the respondents but I would also like to get the ethernet address of the respondents as well. How would I go about accomplishing this? A corollary question, how can I get the ethernet address of the computer on which my program is running?

Thank you,

Alex Kettner

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


This email sent to email@hidden


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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 the ethernet address (From: Alex Kettner <email@hidden>)

  • Prev by Date: Getting the ethernet address
  • Previous by thread: Getting the ethernet address
  • Index(es):
    • Date
    • Thread