The getClientIP( ) method that comes with CakePHP is returning private IPs sometimes. For example IPs like 127.0.0.1 or 192.x.x.x. I assume this is caused by proxies.
Looking at the getClientIP( ) code it does seem like it tries to deal with proxies issues but it doesn't really check if the IP is private or not.
What would be the best way to get the real, non-private, IP address?
Thanks.