Fog Creek Software
Discussion Board




How to get MACADDRESS without netbios?

If netbios is not installed, how to find the MACADDRESS of my adapter?
Thank you.

Emil Mustea
Tuesday, October 08, 2002

Go to: http://www.delphi-jedi.org/ and download the JCL code library. It contains several very nice goodies. The JclSysInfo.pas unit contains a GetMacAddresses function which is what you are looking for.

If you were thinking about using the MAC address to protect your software: don't. It will give you much more trouble than you want to cope with.

Jan Derk
Tuesday, October 08, 2002

There are three methods described in the Winsock FAQ, which also has links to further information:

http://tangentsoft.net/wskfaq

The JEDI library seems to try NetBIOS, and then SNMP if that doesn't succeed. We use the SNMP method in C++ on a variety of machines and it works fine for us. One thing to watch out for is virtual Ethernet cards popping up on machines running VMWare.

Andrew Simmons
Tuesday, October 08, 2002

*  Recent Topics

*  Fog Creek Home