How can I get the client's IP address in CakePHP? It'd be $_SERVER['REMOTE_ADDR']
in plain PHP.
I thought it's like all $_SERVER
vars and can be accessed using env('VAR_NAME')
, or getClientIP()
in CakePHP, but it doesn't return the same results.
Any ideas?