Help - Search - Members - Calendar
Full Version: Obtaining a Mac Address
Invision Power Services > Community Forums > Community Web Design and Coding
Constant-Flux
Hi, just a quick query - i hope.

I have tried looking for code through google, but im not sure what im looking for. My mate is trying to obtain a mac address from a local machine in C++.

Any ideas how to do this? Im sure there is a few lines of code somewhere that can do it. original.gif

Thanks Peeps
Stephen
windows or *nix?

if windows take a look at http://www.codeguru.com/Cpp/I-N/network/ne...ticle.php/c5451

and also http://www.codeproject.com/internet/getmac.asp
Barn
Wow, compare the C# and C++ code in that example and you really see why people rave about .NET original.gif
Constant-Flux
Cool, ill get my mate to check it out!

Cheers original.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.