remote_ip always returns (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
So it gets this IP from apache (I guess). How do I get the true client
IP address


request.env[ 'HTTP_X_FORWARDED_FOR' ]

yes, thnx a lot!!