I have a problem to get the user\'s ip address into web server. I am using this code..
//To get the local IP address
string sHostName = Dns.Get
Get users IP address
Request.ServerVariables("REMOTE_ADDR")
or
Request.UserHostAddress
To get the IP address of the machine and not the proxy use the following code
Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
This link help you more..
http://www.codeproject.com/Questions/260872/How-to-get-client-IP-in-asp-net-Csharp