using System.Net; String
hostInfo =
Dns.GetHostName();
System.Net.IPAddress addr;
addr = new System.
Net.IPAddress(Dns.GetHostByName(Dns.GetHostName()).AddressList[0].Address);
String
IpAddress = addr.ToString();
posted on 2008-09-11 13:54
天书 阅读(947)
评论(0) 编辑 收藏 引用