If you need to get MAC addresses of installed network adapters, then you can use this:
using System.Net.NetworkInformation;
NetworkInterface[] arr = NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface item in arr)
{
PhysicalAddress mac = item.GetPhysicalAddress();
}
No comments:
Post a Comment