我已经登录了页面,我想获取用户客户端的Mac地址,但是当我发布到服务器并获取服务器MACID时,我写了这段代码。如何获取用户客户端地址
string NetworkMacID = "";
IPGlobalProperties computerProperties = IPGlobalProperties.GetIPGlobalProperties();
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
if (nics == null || nics.Length < 1)
NetworkMacID = "";
else
NetworkMacID = nics[0].GetPhysicalAddress().ToString();
return NetworkMacID;