Remote_ip always returns 127.0.0.1 (apache)

Hi All

I have my webrick server behind apache (all on the same server). The
problem I have now is that request.remote_ip always returns 127.0.0.1.
So it gets this IP from apache (I guess). How do I get the true client
IP address

Cheers
LuCa

On Mon, Jul 28, 2008 at 3:09 PM, Luca S.
[email protected] wrote:

I have my webrick server behind apache (all on the same server). The
problem I have now is that request.remote_ip always returns 127.0.0.1.
So it gets this IP from apache (I guess). How do I get the true client
IP address

request.env[ ‘HTTP_X_FORWARDED_FOR’ ]


Greg D.
http://destiney.com/

yes, thnx a lot!!