php how server passes client ip address in order code example Example: php get user ip $ip = $_SERVER['REMOTE_ADDR'];