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.