Sometimes, we want to configure Python Flask dev server to be visible across the network.
In this article, we’ll look at how to configure Python Flask dev server to be visible across the network.
How to configure Python Flask dev server to be visible across the network?
To configure Python Flask dev server to be visible across the network, we set the --host
option to 0.0.0.0
.
For instance, we write
flask run --host=0.0.0.0
to run our app with flask run
and set the --host
option to 0.0.0.0
to make our Flask app visible anywhere in our local network.
Conclusion
To configure Python Flask dev server to be visible across the network, we set the --host
option to 0.0.0.0
.