How to get my MAC address with python ?

olivier Ravard ravard at
Mon Feb 2 18:58:55 CET 2004

Cameron Laird wrote:
> In article <bvlocd$37u$1 at>,
> olivier Ravard  <ravard at> wrote:
>>I want to know the MAC address of my local network card with a python 
>>I tested the socket module which gives only the IP address.
>>Is someone have an idea ?
> 			.
> 			.
> 			.
> What operating system interests you?

Linux and windows. If there is a portable procedure it would be fine!

More information about the Python-list mailing list