I have uploaded a flask project on a ec2 instance and run it with this command:
python app.py
And the server give me this information:
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
Everything seems to be okay, but I cant get connection to the webpage.. I have also opened all TCP ports on the server
Make your flask app listen on all IPs by passing a parameter in app.run()
app.run(host='0.0.0.0')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.