I have a flask application, and when I run it after copying the files to the server the usual message is displayed,
* Running on http://127.0.0.1:5000/
* Restarting with reloader
But when I go to my server's ip address(port 5000), ie http://162.XXX.XXX.XX:5000, I see nothing there.
Where does the server deploy the flask application ?
Found the solution, instead of app.run() in the last line, changed that to app.run(host='0.0.0.0'), which basically tells flask to listen to all public IP's
Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With