获取客户端机器名

System.Net.IPAddress ip = System.Net.IPAddress.Parse(Request.UserHostAddress);
Response.Write(System.Net.Dns.Resolve(ip.ToString()).HostName);

posted @ 2011-07-29 09:56  星火卓越  阅读(263)  评论(0编辑  收藏  举报