Django 0.0.0.0:80; can't access remotely

后端 未结 7 2093
孤街浪徒
孤街浪徒 2020-12-15 04:28

I\'m trying to access my Django server from another computer on the same network. I\'ve set up my server and can view everything correctly usingpython manage.py runse

相关标签:
7条回答
  • 2020-12-15 05:25

    I had the same question on a Windows computer, and started the Django server with python manage.py runserver 192.168.1.146:80, instead of the 0.0.0.0. (I used a different IP address of course).

    After that, a Windows Firewall dialog popped up and asked if I should unblock the port (yes). Other computers in the LAN could then access the Django server using 192.168.1.146:80.

    0 讨论(0)
提交回复
热议问题