Category: Utility Classes
How can I get client's true IP address in Cake 3?
$clientIp = $_SERVER['REMOTE_ADDR']; //the php way
I always get output:
Please help, thanks!SOLVED ip
::1 is the IVP6 address (Kristi's answer).
If you want to get client's ip address in cakephp way, consider:
//in controller $ip = $this->request->clientIp();
Created: 26 Sep '16
Last Reply: 26 Sep '16
Start baking your own CakePHP application!