How can I get the client\'s IP address in CakePHP? It\'d be $_SERVER[\'REMOTE_ADDR\'] in plain PHP.
$_SERVER[\'REMOTE_ADDR\']
I thought it\'s like all $_SERVER vars
$_SERVER
In cakephp 3.x
In your controller to get the client ip - $this->request->clientIp();