Click to See Complete Forum and Search --> : Request.ServerVariables("REMOTE_ADDR")


ramki_g
05-09-2001, 09:34 AM
Hi,
I am using Request.Servervariables("REMOTE_ADDR") to get the IPAddress of the client machine. Our Users will use Netscape Navigator. I am getting the correct IP Address for all my clients except one client.
When the asp is accessed from that machine it is displaying some other IP Address(I found that this IP belongs to one of our e-mail servers).
I have verified all the Netscape settings, it is same as other machine settings. We are not using any Proxies. If i open the asp in IE it is giving me the correct IP Address.

Can some one help me?

Anon
04-10-2002, 03:14 PM
REMOTE_ADDR doesn't always contain the client machine's IP.

First check HTTP_X_FORWARDED_FOR. If there's something there, it should be the client IP. If not, go to REMOTE_ADDR.

Had problems using REMOTE_ADDR as was using it for IP verification as part of security measures -- had a user whose REMOTE_ADDR kept changing (every few seconds) and looking at HTTP_X_FORWARDED_FOR solved the problem.