[Pythonmac-SIG] Obtaining the hardware address of the first network card

Bob Ippolito bob@redivi.com
Sat, 13 Apr 2002 10:29:54 -0400


http://developer.apple.com/techpubs/mac/Networking/Networking-262.html

That should have enough info for you to do it on OS9, either that or one 
of the techpubs it links to.  No idea how to do it from pure python, 
it's probably not quite so possible.

On Friday, April 12, 2002, at 02:10 AM, Deirdre Saoirse Moen wrote:

> At 12:18 AM +0200 4/12/02, Pieter Claerhout wrote:
>> is there a way to obtain the hardware address of the built-in network 
>> card
>> of your Mac using Python? I found way to get it under command line 
>> python in
>> OS X, but it should work on all macintoshes...
>
> In theory, there could be multiple addresses, so how do you presume to 
> figure out which one? And some Macs don't have ethernet. :)
> -- _Deirdre    Stash-o-Matic: http://fuzzyorange.com    
> http://deirdre.net
> "I'm writing a book. I've got the page numbers done."   - Steven Wright
>
>
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig