On 29 Jan 2007, at 10:48am, Stephan Bergmann wrote:
When I ask for the environment variable REMOTE_ADDR (e.g. by SSI or
CGI -> $ENV{REMOTE_ADDR}),
what I receive is the IP address of the server, the site is running
on, but NOT the IP address of the remote
user connected to the server.
You're not asking for the right thing. The purpose of 'REMOTE_ADDR'
is to let the server know which computer it should be talking to.
What you want is called HTTP_X_FORWARDED_FOR in PHP, though it may
have other names in other languages.
Simon
--
Simon Slavin Fylde Building Room C11
Computing Development Officer 01524 65201 x 93569
Psychology Department
University of Lancaster