[DllImport("iphlpapi.dll", ExactSpelling = true)]
public static extern int SendARP(int DestIP, int SrcIP, [Out] byte[] pMacAddr, ref int PhyAddrLen);
public string GetMacAddress(string hostName)
{
System.Net.IPAddress[] adrr = Dns.GetHostEntry(hostName).AddressList;
byte[] by = new...