Categories
Python Answers

How to access the local Python Django webserver from outside world?

Spread the love

Sometimes, we want to access the local Python Django webserver from outside world.

In this article, we’ll look at how to access the local Python Django webserver from outside world.

How to access the local Python Django webserver from outside world?

To access the local Python Django webserver from outside world, we can run runserver with 0.0.0.0.

To do this, we run

python manage.py runserver 0.0.0.0:8000

to start the local web server with runserver and 0.0.0.0:8000 to listen on every interface on port 8000.

Conclusion

To access the local Python Django webserver from outside world, we can run runserver with 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 *