GET CLIENTS IP USING ASP.NET

Labels:

We can trace the ip's who visit our web sites using the following line in asp.net

string ipaddr;
ipaddr = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];

ipaddr stores the clients ip.

0 comments:

Post a Comment