Search code examples
djangonetwork-programminglocalhostport

How to share localhost port over local network


I created webpage on local server with django framework (python). I have acces to it under address http://localhost:8000/. Now I want to share it over local network. I try to do it with Windows firewall Inbound/outbound rules, but it seems either I do something wrong or it's not enough.


Solution

  • I am not sure how to suggest a duplicate question, but seems your question have an answer here. Basically, you need to ask the django program to accept connection from the outside world by

    python manage.py runserver 0.0.0.0:8000