摘要: 1、通过主机名获取局域网IP地址; try { IPHostEntry ipHostEntry = Dns.GetHostEntry(txtHost.Text);//传递计算机名 if (ipHostEntry.Aliases.Length > 0) { foreach (string alias in ipHostEntry.Aliases) txtIP.Text = alias; } /... 阅读全文
posted @ 2009-04-01 10:43 Liran 阅读(5221) 评论(0) 推荐(0)