By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,203 Members | 1,546 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,203 IT Pros & Developers. It's quick & easy.

REMOTE_ADDR gives a wrong IP address

P: n/a
Hi All,

I am in a bit of fix. In one of my setup, the server REMOTE_ADDR(url = Request.ServerVariables("REMOTE_ADDR")) does not work, itgives a IP address but the wrong one. It does not give the IPaddress of the machine surfing the page. It seems to me that itis giving me the IP of some proxy server.

Is there a work around to this issue ? Any ideas ?

Thanks a lot,
Sachin
Jul 19 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"Sachin Singhal" wrote ...
Is there a work around to this issue ? Any ideas ?


Not that I am aware of, the IP you receive is the IP that hits your server,
in our case here it will be of our companies firewall.

Regards

Rob
Jul 19 '05 #2

P: n/a
> Is there a work around to this issue ? Any ideas ?

Not really, unless you install some Java applet, ActiveX control, or other
client-side object that the user then agrees to allow inspect their machine
and relay their real IP address to you. ASP has no way of knowing this...
it runs on the *server* and only knows of the pieces of data that are told
to it through the Request.ServerVariables collection.

Still, not sure how that would be useful to you, because if they're going
through a proxy server, chances are you wouldn't be able to connect directly
to them anyway (often they would only relay an address internal to their
network, e.g. this machine would tell you 192.168.2.17).

The proxy server is usually there for a reason - to prevent people from
knowing / seeing / attacking the client's direct IP. IP is a horrible way
to identify people anyway... did you know that at any one time, as many as
half a million AOL users all look the same, because they all go through a
single IP address?
Jul 19 '05 #3

P: n/a
"Aaron Bertrand [MVP]" wrote...
did you know that at any one time, as many as
half a million AOL users all look the same, because they all go through a
single IP address?


Aaron, all AOL users look the same anyway :D

Regards

Rob
Jul 19 '05 #4

P: n/a
True. I always imagine them as one of these characters:

http://www.aspfaq.com/fark/mr.happy.jpg
http://www.aspfaq.com/fark/bigsnit.jpg
Jul 19 '05 #5

P: n/a
"Aaron Bertrand [MVP]" wrote ...
True. I always imagine them as one of these characters:

http://www.aspfaq.com/fark/mr.happy.jpg
http://www.aspfaq.com/fark/bigsnit.jpg


ROTFL!

I must admit as I hit the send key a sudden feel of unease passed through my
body....it was like my fingers were engaged, but my brain wasn't - "oh no" I
thought, "how many will I offend" - glad you saw the funny side :o)

No offence to any AOL'ers here ;o)

Rob
Jul 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.