#!/usr/bin/python from flask import Flask app = Flask(__name__) @app.route("/getmyconfig/") def configurations_giver(my_ip): configs = "" if my_ip=='10.0.0.3': configs = '--local_name xxx --remote_ip xxx --remote_name xxx' return configs if __name__=='__main__': app.run(debug=False, host='0.0.0.0', port=5555)