I am working on localhost(XAMPP) with codeigniter 2.1.0, I just modified welcome_message view with the following code:
<p>your IP address:
<?php
echo $this->input->ip_address();
if(!$this->input->valid_ip($this->input->ip_address()))
echo ' is not a valid IP';
?>
</p>
It outputs the following in welcome message:
your IP address: 0.0.0.0 is not a valid IP
I think it must return:
your IP address: 127.0.0.1
but it is not happening this way, why?
I believe this is answer to your question ellislab.com/forums/viewthread/205222 you get IPv6