473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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.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?
Jul 19 '05 #1
3 1576
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" <sa***@indexinteractive.com> wrote in message
news:eg*************@TK2MSFTNGP11.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.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?
:
:
Jul 19 '05 #2
thanks but how can i learn client ip in thiz situation. it is imposible?
Jul 19 '05 #3
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" <sa***@indexinteractive.com> wrote in message
news:OF****************@TK2MSFTNGP10.phx.gbl...
: thanks but how can i learn client ip in thiz situation. it is imposible?
:
:
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

39
by: scooter | last post by:
Given this class heirarchy class Base{}; class A : public Base {}; class B : public Base {};
5
by: Rob Panosh | last post by:
Hello, In MSS 2k can Primary Key, Unique Constraints, Indexes and Foreign Keys be disabled? If Indexes (PK's and UN Constraints) can be disabled what happens if data is inserted while disable? ...
51
by: Alan | last post by:
hi all, I want to define a constant length string, say 4 then in a function at some time, I want to set the string to a constant value, say a below is my code but it fails what is the correct...
26
by: Materialised | last post by:
Hi everyone, I seen the post by Rob Morris, and thought that I would double check that I was using pointers in the correct way. So I written the following string functions to test. I know soem can...
16
by: Duncan Mole | last post by:
Hi, This is probably an easy one but it iy first bit of p/invoke. I am trying to use the following C struct in a call: typedef struct { BYTE SRB_Cmd; BYTE SRB_Status, BYTE ...
35
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
11
by: Bryan | last post by:
Hi, I work for a company that is heading towards an FDA approved development process. We have always used C++ in a windows environment, and we have more than 6 years of code, applications and...
14
by: moogyd | last post by:
Experts, I have written (and delivered :-( ) some code. I wanted to check that the bottom two bits of P8 were set, and so I produced: if (P8 & (uint8)0x03 == (uint8)0x03) { // Code } ...
16
by: Eigenvector | last post by:
Probably a dumb question, but I'm having problems with a while loop that I would like to have execute in some code I'm writing. Now what I'll post below is made up trivial code because what I'm...
1
by: Riverburn | last post by:
I have a very small question regarding the px notation (with a lot of text though). is there a reason Mozilla cannot read the following css: .box{ width:500 px; } ? because opera can show...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.