use ip address as url php echo code example Example: php get ip address $clientIPAddress=$_SERVER['REMOTE_ADDR'];