Can't open port on Amazon EC2 instance
Solution 1:
From the netstat
output, it seems that your app is listening on loop-back interface only - 127.0.0.1:8080
and so you are not able to connect to it outside of the instance.
See e.g. ssh
service - 0.0.0.0:22
. This means the service is listening on "all network interfaces".
You need to reconfigure your application to make it listening not only on loop-back.
Another solution could be to add iptables DNAT
rule so incoming requests are forwarded to the loop-back interface.