protected string FetchMac() { string macAddr= ""; foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces()) { if (nic.OperationalStatus == OperationalStatus.Up) { macAddresses += nic.GetPhysicalAddress().ToString(); break; } } lblMac.Text = macAddr.ToString(); return macAddr; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)