Question

I am given an Amazon Linux AMI 2013.03 instance with dns address like this: ec2-22-11-111-105.compute-1.amazonaws.com on which I have to host a java web service. I am connecting to it as ec2-user. I have installed tomcat6 server on it by this command: sudo yum install tomcat6 tomcat6-webapps and place my WebService.war file in the \usr\share\tomcat6\webapps folder. And then I have started the tomcat server as sudo service tomcat6 start. The tomcat is running on port 8080 and I have already got the port 8080 opened. So I am now trying to connect to this port from some other machine by this url: http://ec2-22-11-111-105.compute-1.amazonaws.com:8080 but I am not able to connect to it although the tomcat server is running. What am I doing wrong? How can I make it work ?

Was it helpful?

Solution

The likeliest problem is that the security group for this EC2 machine does not allow access on port 8080. Have a look here for more details: Create and Configure Your Amazon EC2 Security Group

Once you modify the security group, the change is applied immediately so you do not need to start a new EC2 machine.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top