We will learn How to get Ip Address in Codeigniter?

Example:

$ip = $this->input->ip_address();

print_r($ip);

I hope this will help you.