Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (12.9k points)

I am having trouble connecting to an Amazon Elastic Cloud Computer Instance via a browser. I attempted going to ********.compute-1.amazonaws.com , but the browser returns that the connection has timed out.

I can connect via ssh and winscp. That is how I uploaded a web app I developer. I have also created a security group and added rules to open ports 22 and 80.

Do I have to assign the security group to the instance somehow?

The security group's rules also do not have a source IP, well they do its 0.0.0.0/0

I would really appreciate any and all help in getting this site ' viewable ' via a browser.

closed

1 Answer

+1 vote
by (18.2k points)
selected by
 
Best answer

You can try the following steps to figure out what's going wrong:

1. Make sure your web server is up and running. SSH into your instance and use the following commands to check if the right process is listening on port 80:

netstat -lnp

2. Check and make sure that you have added the rule to allow port 80 in the security group of your instance.

3.  Make sure that you updated your instance before installing your the web server of your choice. If it's an Ubuntu instance, use the following command as soon as you SSH into your instance:

sudo apt-get update

For Amazon Linux instance:

sudo yum update

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories

...