Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

flask get ip of user

from flask import request
from flask import jsonify

@app.route("/get_my_ip", methods=["GET"])
def get_my_ip():
    return jsonify({'ip': request.remote_addr}), 200
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flask #ip #user
ADD COMMENT
Topic
Name
5+9 =