Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find the MAC address of the network adapter

Status
Not open for further replies.

alexboly

Programmer
Oct 23, 2002
83
RO
I have to find the MAC address of the network adapter. The problem is that the solution
1) Has to work at least on Windows 9x/ME/NT 4.0/2000/XP (maybe also on other Os's, like Linux);
2) Should be able of getting the MAC address for an adapter located on another computer in the LAN;
3) Shouldn't be dependent on protocol (should work both on TCP/IP and on Novell IPX etc.);
4) Should be able of getting the MAC address for all installed network adapters (either on the local computer or on the remote one).
Does anybody have any idea on how this can be done?
 
Thanks, Richard.

Unfortunately this method does not work on Windows (which is my primary concern now), because the ioctl commands implement only a limited set of options relatively to the Berkeley sockets that does not include SIOCGIFHWADDR...
Any other ideas?

Thanks,
Alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top