Ethernet MAC Address, SNMP method
-
Probably anyone, who has ever try to obtain mac address has found page at Winsock Programmer's FAQ and saw all three samples. The most "complicated" method there was SNMP method and it actually works everywhere i tryed. But (there is allways some but)... After enumerating all mac addresses for my devices, i found myself tiny little confused. I have 2 network cards, one for internal network and one for inet, but i have 4 mac addresses. After some clicking i found two more device drivers. Every one of those two has its own mac address!! Now the question... how to figure out which mac address is owned by actually hardware (2 ethernet cards)? I have found one way, to get ip address from winsock and snmp, then match them and get mac address for match, but it is kind a annoying... Thank you for reading this, Rok