foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces()) { string MACAddress = nic.GetPhysicalAddress().ToString(); }