摘要:
public class getIP { [DllImport("Iphlpapi.dll")] //操作系统自带 private static extern int SendARP(Int32 dest, Int32 host, ref Int64 mac, ref Int32 length); [DllImport("Ws2_32.dll")] private static extern Int32 inet_addr(string ip); //获取本机的IP public string getLocalIP() { string strHostN
阅读全文