question mistake again

S

Savas Ates

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?
 
K

Ken Schaefer

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

: 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?
:
:
 
K

Ken Schaefer

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

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top