I am getting wrong Client Ip address.

Posted by Vibin Jith on Stack Overflow See other posts from Stack Overflow or by Vibin Jith
Published on 2010-04-10T07:14:16Z Indexed on 2010/04/10 7:23 UTC
Read the original article Hit count: 329

Filed under:

I am running an ASP.NET application. The web server is located in the same system. In the code behind I just want to get the IP address of the requesting client. I am using this code

Request.UserHostAddress

But I am getting a wrong address: 127.0.0.1 My system IP address is 198.162.0.27.

© Stack Overflow or respective owner

Related posts about ASP.NET