In CodeIgniter, you can get the IP address of the incoming HTTP request using the getIPAddress( ) function. You can also get geolocation-related information about the IP address by calling the Abstract IP Geolocation API via the PHP curl library. This API provides additional information about the IP address, such as the location coordinates, geolocation information, time zones, and ISP details.