Re: IP address

From: Date: Fri, 24 Jan 2003 15:29:18 +0000
Subject: Re: IP address
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132999@lists.php.net to get a copy of this message
--- "K.C.P. van Zijl" <karel@sonosol.nl> wrote: > Is it possible in PHP to determine the IP address > of a server which is requesting a page from my own > server? When I use $REMOTE_ADDR, I get the wrong IP > address. In that case I get the IP address of a > person who is requesting the page on that other > server. $_SERVER['REMOTE_ADDR'] is the IP address of the requesting client, whether it is an HTTP proxy, a person's PC, or another Web server playing the role of an Web client. My guess is that you are wrong about who is requesting what. Chris

« previous php.general (#132999) next »