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;//獲取客戶端計算機名稱