public List<string> GetMacAddress()
{
var list = new List<string>();
foreach (NetworkInterface networkInterface in NetworkInterface.GetAllNetworkInterfaces())
{
if (networkInterface.NetworkInterfaceType == NetworkInterfaceType.Ethernet && networkInterface.OperationalStatus == OperationalStatus.Up)
{
list.Add(networkInterface.GetPhysicalAddress().ToString());
}
}
return list;
}