lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


steve donovan wrote:
On windows, the incantation is 'ipconfig /all'  (note the 'p').  This
is very verbose, but there will be an entry for your ethernet card:

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : csir.co.za
        Description . . . . . . . . . . . : Intel(R) 82566DM-2 Gigabit
Network ...
        Physical Address. . . . . . . . . : 00-21-9B-6F-0F-19
        Dhcp Enabled. . . . . . . . . . . : Yes
        ....

One thing to be aware is that the above strings change according to OS language; also there could be other (possibly virtual) network cards, so extracting the desired MAC address from the output of 'ipconfig /all' isn't always straightforward.

  Enrico