Well, I'm trying to log in the login history, so for this I need to track the user's IP address. I used:
$this->input->ip_address();
This should return the ip address machine if the user has a valid ip, or should return 0.0.0.0 if the user does not have a valid IP address. But in my case, he did not return.
It returns only an unusual format.
::1
PS I am checking it on my local computer.
EDIT:
Thanks to everyone who commented. But there are strange things here. I have two separate applications running on my machine. Both applications are created in Codeigniter 2. The first writes 0.0.0.0 , and the second writes ::1 . Shouldn't both applications return the same thing?
thanks
source share