VB.NET:
Dim nic As Net.NetworkInformation.NetworkInterface
Dim keyadd As String
For Each nic In Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces
keyadd = nic.GetPhysicalAddress.ToString
If keyadd = "" Then
MsgBox("no add")
Else
MsgBox(keyadd)
End If
Next
i need to get the mac add of the system . i have the above code
i do get the mac add but in the loop i get more than one mac add and some time blank also.
i need to get a single unique mac add which is unique to each system