client ip address in site

javascript Iran
  • 12 years ago

         

    can anybody tell me how to retrive the client ip, in asp.net, i want  actual(real) client not the router ip like

    Request.ServerVariables["HTTP_X_FORWARDED_FOR"];

    Request.UserHostAddress.ToString();

    Request.ServerVariables["REMOTE_ADDR"].ToString();

    HttpContext.Current.Request.UserHostAddress;

    these all gives me the upto router... but not actual client....

    Thanks

    MAHINDRAKAR.... 

     

     

     

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Programs must be written for people to read, and only incidentally for machines to execute.”