[英]Server not accepting request on port 9999
I am trying to deploy my socket[phpws library] on amazon EC2 instance.我正在尝试在亚马逊 EC2 实例上部署我的套接字 [phpws 库]。 For this I deployed code and run socket.
为此,我部署了代码并运行了套接字。 I have selected port 9999 for socket handshake, but it is not working.
我为套接字握手选择了端口 9999,但它不起作用。 I tried to captured request on this server by command :
我试图通过命令在此服务器上捕获请求:
sudo tcpdump -i any port 9999
Then I hit this port, I did not received any request.然后我点击这个端口,我没有收到任何请求。 I thought this is because of iptables.
我认为这是因为 iptables。 So I checked it by command :
所以我通过命令检查了它:
sudo iptables -L
But it clearly shows allow for all requests.但它清楚地表明允许所有请求。 Here is output :
这是输出:
Chain INPUT (policy ACCEPT) target prot opt source destination
Chain INPUT (policy ACCEPT) target prot opt source destination
Chain FORWARD (policy ACCEPT) target prot opt source destination
Chain FORWARD (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
At this point I am clueless how to move forward.在这一点上,我不知道如何前进。 Any help is gently appreciable.
任何帮助都是可以理解的。 Looking for response.
寻找回应。
您还必须在附加到 EC2 实例的 AWS 安全组中打开端口9999
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.