Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > question mistake again

Reply
Thread Tools

question mistake again

 
 
Savas Ates
Guest
Posts: n/a
 
      06-12-2004
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?


 
Reply With Quote
 
 
 
 
Ken Schaefer
Guest
Posts: n/a
 
      06-12-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
: 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?
:
:


 
Reply With Quote
 
 
 
 
Savas Ates
Guest
Posts: n/a
 
      06-12-2004
thanks but how can i learn client ip in thiz situation. it is imposible?


 
Reply With Quote
 
Ken Schaefer
Guest
Posts: n/a
 
      06-12-2004
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" <(E-Mail Removed)> wrote in message
news:OFyFd%(E-Mail Removed)...
: thanks but how can i learn client ip in thiz situation. it is imposible?
:
:


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dictionaries again - where do I make a mistake? Lad Python 2 10-19-2006 03:54 PM
This message is a mistake - see previous question =?Utf-8?B?RmxlbW1pbmc=?= ASP .Net 0 10-16-2006 01:01 PM
HttpSession gets generated again and again!! PLEASE HELP ME!!!! che Java 2 10-10-2005 10:20 PM
Made the mistake of trying to install Norton's again LO&MsLO Computer Support 3 02-01-2004 09:03 PM
jserve booting again and again amit Java 0 10-02-2003 04:26 PM



Advertisments