Flutterby™! : MAC address

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

MAC address

2007-09-18 00:24:30.204356+02 by Dan Lyke 2 comments

[ related topics: Microsoft Open Source Macintosh ]

comments in descending chronological order (reverse):

#Comment Re: made: 2007-09-18 03:51:27.455645+02 by: Dan Lyke

You can actually grab it from ifconfig too, on both BSD/OS/X and Linux, but in this case I'm writing some code to actually require a user to hit a web page the first time they run our application on their machine, so I needed to get it from C code.

Yeah, if I were writing this in anything else I'd have run ifconfig and parsed the output.

#Comment Re: made: 2007-09-18 03:41:58.66883+02 by: meuon [edit history]

Just typing 'arp' MAY display it on Linux. Note that it may display others as well. Or run 'arp' on a nearby system to see the other machine. It's also in displayed from "dmesg", and readable from /proc/net/dev_mcast and /proc/net/dev/ipv6_route and.. and..

Comment policy

We will not edit your comments. However, we may delete your comments, or cause them to be hidden behind another link, if we feel they detract from the conversation. Commercial plugs are fine, if they are relevant to the conversation, and if you don't try to pretend to be a consumer. Annoying endorsements will be deleted if you're lucky, if you're not a whole bunch of people smarter and more articulate than you will ridicule you, and we will leave such ridicule in place.


Flutterby™ is a trademark claimed by

Dan Lyke
for the web publications at www.flutterby.com and www.flutterby.net.