Server not accepting request on port 9999

682 views Asked by At

I am trying to deploy my socket[phpws library] on amazon EC2 instance. For this I deployed code and run socket. I have selected port 9999 for socket handshake, but it is not working. 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. 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 FORWARD (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.

1

There are 1 answers

1
Mark B On BEST ANSWER

You have to also open port 9999 in the AWS Security Group attached to the EC2 instance.