How to get Ip Address in Codeigniter?

How to get Ip Address in Codeigniter?

In this post we will give you information about How to get Ip Address in Codeigniter?. Hear we will give you detail about How to get Ip Address in Codeigniter?And how to use it also give you demo for it if it is necessary.

If you are work on Codeigniter application and you require to get client ip address then you can get easy. you don’t need to use $_SERVER variable like native PHP, but Codeigniter provide $this->input. you can fetch easy using following example:

Example:

Also see:How to get ip address in jquery?

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

print_r($ip);

Hope this code and post will helped you for implement How to get Ip Address in Codeigniter?. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Leave a Comment

Your email address will not be published. Required fields are marked *

24  +    =  29

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US