From C#, I want to do the equivalent of the following:
arp -a |findstr 192.168.1.254
Alternatively, the answer could call the SendARP funct
To find your own:
Add a reference to System.Management
ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection mcCol = mc.GetInstances();
foreach (ManagementObject mcObj in mcCol)
{
Console.WriteLine(mcObj["Caption"].ToString());
Console.WriteLine(mcObj["MacAddress"].ToString());
}
Not sure about finding that of another device.