using System.Net.NetworkInformation; private string GetMacAddress() { string macAddresses = ""; foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces()) { // Only consider Ethernet network interfaces, thereby ignoring any // loopback devices etc. if (nic.NetworkInterfaceType != NetworkInterfaceType.Ethernet) continue; if (nic.OperationalStatus == Operationa..