Flask App visible to localhost only Flask App visible to localhost only flask flask

Flask App visible to localhost only


By default, flask app is only visible for local access. You need to specify the host option --host=0.0.0.0 to make it visible for other network.

Externally Visible Server

If you run the server you will notice that the server is only accessible from your own computer, not from any other in the network. This is the default because in debugging mode a user of the application can execute arbitrary Python code on your computer.

If you have the debugger disabled or trust the users on your network, you can make the server publicly available simply by adding --host=0.0.0.0 to the command line:

flask run --host=0.0.0.0

This tells your operating system to listen on all public IPs.

Check this http://flask.pocoo.org/docs/1.0/quickstart/#quickstart