-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bind无效 #6
Comments
我的建议是:检查端口占用;或者把具体的错误贴上来。毕竟,只有描述很难找出原因。 |
说明一下,这是亚马逊服务器,有公网IP,不过ifocnfig不能直接看到公网IP。 方式2(无法正常启动): |
云服务器应该是有一层NAT,本机实际上应该没有直接绑定公网IP。 |
再补充一下,来自阿里云: 弹性公网IP本质上是一个NAT IP。由于普通模式(NAT模式)下的公网IP存在于网关设备,并不在ECS实例的网卡上,所以在操作系统内看不到公网IP,只能看到网卡上的私网IP。 所以,实际上,服务器IP确实经过了NAT。 |
部署在公网服务器,然后设置:"listen": "0.0.0.0:8000",或者"listen": "WAN_IP:8000",都是无效的,导致公网服务访问。
The text was updated successfully, but these errors were encountered: