Visitor IP Address

Discussion in 'ASP .Net' started by PP, Jan 6, 2010.

  1. PP

    PP Guest

    Hello Guys,
    How to get the visitor's actual IP address.
    I have tried all the possible solution like
    HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"],
    UserHostAddress, Remote_ADDR etc etc. But all are returning the same IP that
    is I think proxy ip.
    If we are behind the firewall/proxy then is there any way to get the local
    IP of the system like 100.100.100.27.

    Please confirm.
    Pankaj
     
    PP, Jan 6, 2010
    #1
    1. Advertising

  2. PP

    bruce barker Guest

    your proxy server should be able to pass along the ipaddress (usually in
    a custom header). see you network people.

    if the the user is behind a proxy, you will only get their proxy address.

    -- bruce (sqlwork.com)

    PP wrote:
    > Hello Guys,
    > How to get the visitor's actual IP address.
    > I have tried all the possible solution like
    > HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"],
    > UserHostAddress, Remote_ADDR etc etc. But all are returning the same IP that
    > is I think proxy ip.
    > If we are behind the firewall/proxy then is there any way to get the local
    > IP of the system like 100.100.100.27.
    >
    > Please confirm.
    > Pankaj
    >
     
    bruce barker, Jan 6, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shige
    Replies:
    1
    Views:
    809
    Munsifali Rashid
    Jan 13, 2004
  2. brett

    Getting IP address of visitor?

    brett, Nov 7, 2006, in forum: ASP .Net
    Replies:
    9
    Views:
    834
    Mark Rae
    Nov 7, 2006
  3. bushi
    Replies:
    13
    Views:
    1,556
    Juan T. Llibre
    Apr 22, 2007
  4. Morris Neuman

    Visitor's IP Address

    Morris Neuman, Jun 30, 2009, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    812
    Morris Neuman
    Jul 2, 2009
  5. bush
    Replies:
    3
    Views:
    295
Loading...

Share This Page