How to get my MAC address with python ?

olivier Ravard ravard at univ-rennes1.fr
Mon Feb 2 18:58:55 CET 2004


Cameron Laird wrote:
> In article <bvlocd$37u$1 at news.univ-rennes1.fr>,
> olivier Ravard  <ravard at univ-rennes1.fr> wrote:
> 
>>Hi,
>>
>>I want to know the MAC address of my local network card with a python 
>>script.
>>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