使用SendARP获取(在局域网内有效)
[System.Runtime.InteropServices.DllImport("Iphlpapi.dll")]
private static extern int SendARP(Int32 dest, Int32 host, ref Int64 mac, ref Int32 length);
[System.Runtime.InteropServices.DllImport("Ws2_32.dll")]
private static extern Int32 inet_addr(string ip);
/// <summary>