Firewall – Unable to browse tomcat from web browser in EC2

amazon ec2firewallsecurity-groupstomcat8

I have configured Security Groups, my tomcat is running in 8080 port. But I am unable to browse from web browser.

Please anyone there to help me ?

Public IP is : 52.39.220.183

When I do curl http://localhost:8080 in EC2 instance then I can see the home page of tomcat, if I do curl 52.39.220.183:8080, then I get Failed to connect to 52.39.220.183 port 8080: Connection timed out.
enter image description here

Best Answer

It was my mistake, the Instance was associated with another Security Group.

First need to check the instance is taking which Security Group.

Instance >> Network interfaces >> eth0 (Clicking on etho pop ups the box and at the bottom, it shows the associated Security Group).

And of course we need to define Inbound request.