flask get user ip client code example Example: get client ip flask request.environ['HTTP_X_FORWARDED_FOR']