I am trying to allow remote connections to my FlaskApp. The scope is to have my FlaskApp running for example on the cloud and me being able to access data from my phone ecc. But I can only run it for Local Host.
I tried with following code:
from flask import Flask, request
app=Flask(__name__)
MY_IP="" #server IP:port
@app.route("/testing")
def test():
return "TEST"
app.run(MY_IP, debug=True)
But I keep getting following error:
line 795, in run_simple
s.bind(get_sockaddr(hostname, port, address_family))
socket.gaierror: [Errno 11001] getaddrinfo failed
Would be really kind if someone could help me out. I also tried entering just the IP address instead of the IP:PORT but i still kept getting that error.I also read using 0.0.0.0 could help, but didn't work either