首页 > 代码库 > 获取本机IP

获取本机IP

Dns.GetHostEntry(Dns.GetHostName()).AddressList.FirstOrDefault<IPAddress>(a => a.AddressFamily.ToString().Equals("InterNetwork")).ToString()

获取本机IP