摘要:
class Program { static void Main(string[] args) { string hostName = Dns.GetHostName(); Console.WriteLine("本电脑的名字为{0}",hostName); IPHostEntry myself = Dns.GetHostByName(hostName); foreach (IPAddress IPAddr in myself.AddressList) ... 阅读全文