Welcome Guest, Not a member yet? Register   Sign In
$this->input->ip_address() problem
#1

[eluser]tnathos[/eluser]
Hi, i try use $this->input->ip_address() but always retutn 0.0.0.0... any know for what reason?

Thanks
#2

[eluser]theprodigy[/eluser]
according to the user guide
Quote:Returns the IP address for the current user. If the IP address is not valid, the function will return an IP of: 0.0.0.0
#3

[eluser]bretticus[/eluser]
Seems like I had this issue on my mac several months back. I found that I was getting the IPv6 for my machine back (::1) Can't remember what I did (I don't *think* I hacked this up for IPv6 addresses.) Smile Do you have a debugger installed where you can step through the code and see what the ip address is (before the code that just outputs 0.0.0.0?)




Theme © iAndrew 2016 - Forum software by © MyBB