simply , cURL is a PHP Library that helps us to connect multi-types of servers with alot of protocols like HTTP , FTP , TPS , TELNET ……. and much more .
The simple version of code used to obtain the users IP address is used to output their IP in a browser. Very simple, but if you did not know how to do it, now you do!