C# 获取电脑Mac地址
private string getMAC() { try { NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces(); foreach (NetworkInterface ni in interfaces) { return BitConverter.ToString(ni.GetPhysicalAddress().GetAddressBytes()); } } catch (Exception) { } return "00-00-00-00-00-00"; }