how to get an ip address using php code example Example: php get ip address $clientIPAddress=$_SERVER['REMOTE_ADDR'];