防火墙限制Django服务器

时间:2020-09-15 05:18:33

标签: django windows

我在本地IP(192.168.86.122:8000)上运行django服务器,但Windows防火墙似乎阻止了连接。

任何建议都会很有帮助。

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:1)

您面向网络的端口可能已被阻止。

或者使用 localhost: py manage.py runserver 127.0.0.1:8000

或者在您的 Windows 防火墙上允许端口 8000: netsh firewall add portopening TCP 8000 "Django Dev Server"