无法连接到远程 Django 服务器端口 80

Can't connect to remote django server port 80

我在 运行 连接到 windows 2012 服务器上的 python django 服务器时遇到问题。对于 运行 服务器,我使用命令:python manage.py 0.0.0.0:80。这导致以下错误

[Error 10013]: an attempt was made to access a socket in a way forbidden by its access permissions

我已经尝试 运行以管理员身份使用命令提示符,但没有任何更改。作为参考,我可以 运行 端口 8000 上的服务器,但是我无法远程连接到该端口。我也关闭了防火墙,所以这可能不是问题所在。

虽然它比 运行 端口 80 上的 django 更可取,但我正在尝试让它在任何端口上工作。

端口 80(和许多其他端口)由 Windows 服务器保留。检查这个 https://serverfault.com/questions/633179/cant-make-confluence-run-on-port-80-with-windows-server-2012-r2,

您可能想 google "Windows Server Reserved port" 了解更多信息和 "unreserve" 的方法。