Python Forum
Running Flask web on other IP than 127.0.0.1
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running Flask web on other IP than 127.0.0.1
#1
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/t...lask-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:8080
and 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.
Reply
#2
see: https://flask.palletsprojects.com/en/1.1.x/deploying/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question [Solved] Running Gunicorn with flask.... SpongeB0B 1 1,588 Jun-27-2022, 03:09 PM
Last Post: SpongeB0B
Question running Flask with waitress having web traffic log... SpongeB0B 2 5,788 May-06-2021, 07:07 AM
Last Post: SpongeB0B
  Flask Ubuntu Server Not Running Wheel 0 1,977 Jul-14-2020, 08:12 PM
Last Post: Wheel
  Flask not running python interpreter from virtual env Charles1 1 2,230 Nov-22-2019, 05:09 PM
Last Post: Larz60+
  Running simple flask - getting 404 beginner1 2 5,268 Oct-28-2019, 02:10 PM
Last Post: beginner1
  Running flask run produces error. Charles1 1 4,028 Oct-04-2019, 10:38 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020