I’ve heard it’s not possible with my current library of winpcap.
Is this really true? I see lots of examples on the net but then comments saying “This doesn’t work”.
What’s the best way to get a MAC address of the local machine?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One common method is using bits from a UUID, but this isn’t entirely dependable. For example, it’ll return a value even on a machine that doesn’t have a network adapter.
Fortunately, there is a way that works dependably on any reasonably recent version of Windows. MSDN says it only goes back to Windows 2000, but if memory serves, it also works on NT 4, starting around SP 5, in case anybody’s still using NT 4.
Please forgive the ancient C code…