Getting Local MAC Address

Rebelo puntabluda at gmail.com
Wed Apr 7 03:32:01 EDT 2010


Lawrence D'Oliveiro wrote:
> In message
> <ec6d247c-a6b0-4f33-a36b-1d33eace642f at k19g2000yqn.googlegroups.com>, Booter 
> wrote:
> 
>> I am new to python ans was wondering if there was a way to get the mac
>> address from the local NIC?
> 
> What if you have more than one?


you can try with netifaces :
http://pypi.python.org/pypi/netifaces/0.3
I use them on both Windows and Linux



More information about the Python-list mailing list