System.Net.IPHostEntry host =new System.Net.IPHostEntry();
private void Page_Load(object sender, System.EventArgs e)
{
host = System.Net.Dns.GetHostByAddress
(Request.ServerVariables["REMOTE_HOST"]);
Response.Write(host.HostName+"\n"+"IP :"+
Request.ServerVariables["REMOTE_ADDR"]);
}
No comments:
Post a Comment