Here i want to find the ip address of system,which i want to implement. but i stucked here. I am using cakephp version 3.2. i have worked on it ,getting an incomplete ip ::1,while my machine ip is 155.0.0.1 Below is code
for getting ip
echo $this->request->clientIp();//getting output ::1
use Cake\Network\Request;
Here i have requested for client ip . In above controller i have used use Cake\Network\Request; I am not very sure about it.
Please suggest me. Where i am doing wrong. will highly appreciate.