question mistake again

Discussion in 'ASP General' started by Savas Ates, Jun 12, 2004.

  1. Savas Ates

    Savas Ates Guest

    i have a banner for example at www.xx.com and my site is www.yy.com.. banner
    has a link www.yy .com .. directed to my site.. when a user click banner
    and i use this method
    --request.ServerVariables("REMOTE_ADDR")-- i take the www.xx.com server ip..
    i want to take ip number of the client who click the banner. what is the
    problem? i cant solve it..
    must it give the client number? i tried it but it doesnt.. it gives the
    www.xx.com 's server ip? what can i do?
    Savas Ates, Jun 12, 2004
    #1
    1. Advertising

  2. Savas Ates

    Ken Schaefer Guest

    Request.ServerVariables("Remote_Addr") will give the remote IP address of
    the TCP endpoint. If the remote user is using a proxy server, then you will
    get the proxy server's IP address. If you are using your own reverse-proxy
    server, you will probably see your own reverse-proxy's IP address. If the
    client is connecting directly to your server, you should see the client's IP
    address.

    The Remote_addr property is derived from what the Windows TCP/IP stack is
    seeing - it should be seeing, in the TCP packets, what the remote IP address
    is - this is where IIS is sending the webpage response to. If you are seeing
    www.xx.com, then IIS is sending the response back to www.xx.com.

    Cheers
    Ken

    "Savas Ates" <> wrote in message
    news:...
    : i have a banner for example at www.xx.com and my site is www.yy.com..
    banner
    : has a link www.yy .com .. directed to my site.. when a user click banner
    : and i use this method
    : --request.ServerVariables("REMOTE_ADDR")-- i take the www.xx.com server
    ip..
    : i want to take ip number of the client who click the banner. what is the
    : problem? i cant solve it..
    : must it give the client number? i tried it but it doesnt.. it gives the
    : www.xx.com 's server ip? what can i do?
    :
    :
    Ken Schaefer, Jun 12, 2004
    #2
    1. Advertising

  3. Savas Ates

    Savas Ates Guest

    thanks but how can i learn client ip in thiz situation. it is imposible?
    Savas Ates, Jun 12, 2004
    #3
  4. Savas Ates

    Ken Schaefer Guest

    We can not answer because we do not know what your situation. You are merely
    telling us what the symptoms are, but you are not explaining how the actual
    NETWORK is setup.

    You need to understand how TCP/IP networking works (Transmission Control
    Protocol, and Internet Protocol). If a request to your server is being made
    by www.xx.com (eg www.xx.com is a reverse proxy), there is no definate way
    to work out what the original client is. You could use some kind of code in
    your page on www.xx.com to record the client's IP address, and pass that as
    part of the URI to your server at www.yy.xom

    Cheers
    Ken

    "Savas Ates" <> wrote in message
    news:OFyFd%...
    : thanks but how can i learn client ip in thiz situation. it is imposible?
    :
    :
    Ken Schaefer, Jun 12, 2004
    #4
    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. amit
    Replies:
    0
    Views:
    389
  2. che
    Replies:
    2
    Views:
    492
  3. abcd

    Importing again and again

    abcd, Jun 8, 2006, in forum: Python
    Replies:
    9
    Views:
    327
    Maric Michaud
    Jun 9, 2006
  4. Lad
    Replies:
    2
    Views:
    236
    Tim Chase
    Oct 19, 2006
  5. Replies:
    4
    Views:
    405
Loading...

Share This Page