question mistake again

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Savas Ates

    question mistake again

    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.ServerV ariables("REMOT E_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

    #2
    Re: question mistake again

    Request.ServerV ariables("Remot e_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" <savas@indexint eractive.com> wrote in message
    news:egPlH0GUEH A.160@TK2MSFTNG P11.phx.gbl...
    : 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.ServerV ariables("REMOT E_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?
    :
    :


    Comment

    • Savas Ates

      #3
      Re: question mistake again

      thanks but how can i learn client ip in thiz situation. it is imposible?


      Comment

      • Ken Schaefer

        #4
        Re: question mistake again

        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" <savas@indexint eractive.com> wrote in message
        news:OFyFd%23GU EHA.1284@TK2MSF TNGP10.phx.gbl. ..
        : thanks but how can i learn client ip in thiz situation. it is imposible?
        :
        :


        Comment

        Working...