Determining Ethernet HW Address

Erno Kuusela erno at
Wed Mar 29 00:30:54 CEST 2000

>>>>> "Jerome" == Jerome Chan <eviltofu at> writes:

    Jerome> I've need the ethernet hw address given an IP and the
    Jerome> Python code runs on Win32 and Linux... so...

there is no portable way of getting it even in C. i guess your best
bet would be parsing ifconfig output... but that too varies
between operating systems.

if you decide to write a module that knows how to do this on many
platforms, send me a copy :)

  -- erno

More information about the Python-list mailing list