Get System Mac Address(C# Console Application)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.NetworkInformation;

namespace Sysmacaddress
{
    class Program
    {
        static void Main(string[] args)
        {
            NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
            var a = nics[0].GetPhysicalAddress().ToString();
            Console.WriteLine("Your Sys Mac id"+a);
            Console.ReadKey();
        }
    }
}

Comments

Popular posts from this blog

my reframce

Angular UI Grid To Bind JSON Data