codeigniter get ip address of client code example Example: codeigniter get user ip $ip = $this->input->ip_address(); echo $ip;