Running Flask web on other IP than 127.0.0.1 - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Running Flask web on other IP than 127.0.0.1 (/thread-25391.html) |
Running Flask web on other IP than 127.0.0.1 - popolon59 - Mar-29-2020 HI, I am new in Python and Flask (<1 year exp.). I followed a tutorial for authentication in Flask there: https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-your-app-with-flask-login However, I cannot figure out how to listen on to another IP than 127.0.0.1 I tried this: export FLASKAPP=“myAppName”; export FLASKDEBUG=1; flask run –host=0.0.0.0:8080and that if name == “main”: app.run(host=‘0.0.0.0’, port=8080, debug=True)Unfortunately, I was not successful. Note that the app is running fine on 127.0.0.1 Any idea? Thanks. P. RE: Running Flask web on other IP than 127.0.0.1 - Larz60+ - Mar-29-2020 see: https://flask.palletsprojects.com/en/1.1.x/deploying/ |