The simplest way to get the IP address of client with PHP is using the $_SERVER[‘REMOTE_ADDR’] or $_SERVER[‘REMOTE_HOST’] variables. However, sometimes this does not return the correct IP address of the visitor, so we can use some other server variables to get the IP address.
Full Source Code Here : https://youthsforum.com/2020/08/18/ge...
#PHP #IP_ADDRESS