Categories
Python Answers

How to configure Python Flask dev server to be visible across the network?

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *