CodeIgniter Forums
$this->input->ip_address() always returns localhost - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: $this->input->ip_address() always returns localhost (/showthread.php?tid=45989)



$this->input->ip_address() always returns localhost - El Forum - 10-13-2011

[eluser]Unknown[/eluser]
I don't know if I've got something misconfigured on my server or what, but my calls to $this->input->ip_address() always return 127.0.0.1. Perhaps I'm misunderstanding the call - I'd assumed it would return the client's IP address. Anything that might point me towards what I'm missing would be awesome.