How to get my MAC address with python ?
jcarlson at nospam.uci.edu
Mon Feb 2 23:14:47 CET 2004
Rick Holbert wrote:
> olivier Ravard 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 ?
> Here's a url where Mark Hammond explains how to do it on Windows:
> On Linux you can parse the output of the ifconfig command as described in
> following url:
It is also arbitrarily trivial to parse the output of ipconfig /all in
Windows 2k/xp/2k3. Windows 98/ME would be different.
More information about the Python-list