codeigniter 4 get user real ip code example Example: codeigniter get user ip $ip = $this->input->ip_address(); echo $ip;