ServerVariables("Remote_Addr") returns local address

Ask a Question related to ASP, Design and Development.

  1. #1

    Default ServerVariables("Remote_Addr") returns local address

    I hope one of you guys can find a solution to my problem.
    We are trying to capture the IP addresses of outside users
    accessing our website. ServerVariables("Remote_Addr")
    isn't working. Instead it returns the internal address of
    our server. We have an ISA server and firewalls. I'm not
    sure if that is the problem. Thanks in advance for your
    help
    Tope Guest

  2. Similar Questions and Discussions

    1. #40481 [NEW]: mail() sends email to wrong address where there are "-" in localpart of "to"
      From: penartur at yandex dot ru Operating system: Linux PHP version: 5.2.1 PHP Bug Type: Mail related Bug description: ...
    2. Servervariables("logon_user") returns empty string
      Hi, Is the Anonymous access trued off in IIS? JN NSQUARED2
    3. Automatic Login - Forms Authentication - Request.ServerVariables["LOGON_USER"]
      Hi there, I'm busy building a site that authenticates users from a database but would like Windows authenticated users to bypass the logon screen...
    4. dr("field").toString returns "400.0000" instead of "400"
      I have just installed VS.NET 2003 on my computer. I have a project that I have been developing on VS.NET 2002. I haven't upgraded this project to...
    5. recvfrom returns with an error code of 14, EFAULT "Bad Address"
      I'll post the code at the bottom of the post. Whenever I try to retreive a udp packet sent via broadcast I get the errorcode EFAULT(bad address)....
  3. #2

    Default Re: ServerVariables("Remote_Addr") returns local address

    Yep, if the user goes through a firewall / router to get to your server, the
    "remote" address should be that of the firewall / router. You either need
    your router to pass along the origin IP in the header, or collect that
    information directly from the browser somehow (e.g. a client-side signed
    applet or ActiveX control).




    "Tope" <topeu@rcl.com> wrote in message
    news:27d401c33f2c$59119020$a401280a@phx.gbl...
    > I hope one of you guys can find a solution to my problem.
    > We are trying to capture the IP addresses of outside users
    > accessing our website. ServerVariables("Remote_Addr")
    > isn't working. Instead it returns the internal address of
    > our server. We have an ISA server and firewalls. I'm not
    > sure if that is the problem. Thanks in advance for your
    > help

    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: ServerVariables("Remote_Addr") returns local address

    How would I get the firewall to send the origin IP?
    >-----Original Message-----
    >Yep, if the user goes through a firewall / router to get
    to your server, the
    >"remote" address should be that of the firewall /
    router. You either need
    >your router to pass along the origin IP in the header, or
    collect that
    >information directly from the browser somehow (e.g. a
    client-side signed
    >applet or ActiveX control).
    >
    >
    >
    >
    >"Tope" <topeu@rcl.com> wrote in message
    >news:27d401c33f2c$59119020$a401280a@phx.gbl...
    >> I hope one of you guys can find a solution to my
    problem.
    >> We are trying to capture the IP addresses of outside
    users
    >> accessing our website. ServerVariables("Remote_Addr")
    >> isn't working. Instead it returns the internal address
    of
    >> our server. We have an ISA server and firewalls. I'm not
    >> sure if that is the problem. Thanks in advance for your
    >> help
    >
    >
    >.
    >
    Tope Guest

  5. #4

    Default Re: ServerVariables("Remote_Addr") returns local address

    > How would I get the firewall to send the origin IP?

    Your firewall would have to have that ability; see the firewall vendor. Not
    an ASP issue.


    Aaron Bertrand - MVP Guest

  6. #5

    Default Re: ServerVariables("Remote_Addr") returns local address

    i think you want remote_HOST



    "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    news:udNWlXzPDHA.1624@tk2msftngp13.phx.gbl...
    > > How would I get the firewall to send the origin IP?
    >
    > Your firewall would have to have that ability; see the firewall vendor.
    Not
    > an ASP issue.
    >
    >

    Tammy B. Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139