using System.Net;
string clientIP = Request.UserHostAddress;//获取客户端的IP主机地址
IPHostEntry hostEntry = Dns.GetHostEntry(clientIP);//获取IPHostEntry实体
string clientName = hostEntry.HostName;//获取客户端计算机名称
using System.Net;
string clientIP = Request.UserHostAddress;//获取客户端的IP主机地址
IPHostEntry hostEntry = Dns.GetHostEntry(clientIP);//获取IPHostEntry实体
string clientName = hostEntry.HostName;//获取客户端计算机名称