I need to get a unique ID from a computer using c#. I have done it with Mac Address by using the code
string macAddresses = "";
foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces())
{
if (nic.OperationalStatus == OperationalStatus.Up)
{
macAddresses += nic.GetPhysicalAddress().ToString();
break;
}
}
return macAddresses;
But when I run code in server , it returns Mac address of the server. How can I get the Mac address or any unique ID of the client system using c#.