Dns.GetHostByName(Dns.GetHostName()).AddressList[0]; 转载于:https://www.cnblogs.com/likang/archive/2007/07/25/830989.html