foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces()) { if (nic.OperationalStatus == OperationalStatus.Up) { macAddresses += nic.GetPhysicalAddress().ToString(); // allvalues += nic.GetIPv4Statistics().ToString(); break; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)