I installed an application jetty on ubuntu 12.04 instance t1.micro
PUBLIC_DNS = ec2-54-225-24-215.compute-1.amazonaws.com
I can do:
ssh ec2-54-225-24-215.compute-1.amazonaws.com
From within the instance, I can do:
curl localhost:8080 -- Success
curl 127.0.0.1:8080 -- Success
From DEVELOPMENT DESKTOP, I did:
ec2-authorize "quicklaunch-0" -P tcp -p 8080
GROUP quicklaunch-0
PERMISSION quicklaunch-0 ALLOWS tcp 8080 8080 FROM CIDR 0.0.0.0/0 ingress
And when I try to connect from browser:
http://$PUBLIC_DNS:8080 or curl $PUBLIC_DNS:8080, it does not connect
curl: (7) couldn't connect to host
I can connect to port 22 of the instance from my desktop.
My instance belongs to quicklaunch-0
What is it I am missing? Please help.
Based on: EC2 hosted Node.js application - can't remotely connect to port
I did try various other ports and launching new instances. Nothing seems to work.
EDIT:
When I run netstat -l, my output is:
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp6 0 0 127.0.0.1:8080 :::* LISTEN
Is FOREIGN address a problem here?