2

How unique is the ethernet network adapter ID in WinRT? It is derived from the Mac address?

IReadOnlyCollection<Windows.Networking.Connectivity.ConnectionProfile> profiles =            Windows.Networking.Connectivity.NetworkInformation.GetConnectionProfiles();

Windows.Networking.Connectivity.NetworkAdapter na = profiles.First<Windows.Networking.Connectivity.ConnectionProfile>().NetworkAdapter;

string nid =  na.NetworkAdapterId.ToString();
Den
  • 16,686
  • 4
  • 47
  • 87
lohith
  • 106
  • 1
  • 5

1 Answers1

1

No, the NetworkAdapterId value is a GUID and has nothing to do with the machine MAC address. You cannot get the MAC adress of the computer through WinRT APIs exposed for the Windows Store application type.

Den
  • 16,686
  • 4
  • 47
  • 87
  • 1
    How is being a GUID related to being not unique (or pseudo unique)? On a phone/tablet, it isn't easy to replace the network adapter – the_nuts Mar 07 '15 at 08:29