Amazon EC2 Socket connection not being accepted

Posted by Joseph on Server Fault See other posts from Server Fault or by Joseph
Published on 2012-04-25T16:52:39Z Indexed on 2014/08/24 22:23 UTC
Read the original article Hit count: 173

Filed under:
|

I am trying to run a java application on my EC2 instance. The application accepts socket connections on port 54321. If I try and connect to it, it times out. My Security Group is set as:

TCP Port (Service)  Source  Action 
21  0.0.0.0/0   Delete 
22 (SSH)    0.0.0.0/0   Delete 
80 (HTTP)   0.0.0.0/0   Delete 
20393   0.0.0.0/0   Delete 
54321   0.0.0.0/0   Delete

Is there anything else I need to do?

# iptables -nvL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
# iptables -nvL -t nat
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
# 

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about firewall