0
votes

I have a running(Windows OS) Amazon EC2 instance. Just to check whether, I can host a website and access it from outside, I created a index.html file with the message 'Hello World!!', and hosted it using http-server on port 80. I can access this website using localhost. However, I am not able to access the website from my personal laptop. I am using Public DNS to access the website, I have also tried with public ip.

In security group, I have opened inbound traffic for HTTP & HTTPS both for all IPs. I can ping this instance from my laptop using the public DNS. I am not sure, what else is missing ?

1
Hi , Which server are you using to host this index.html? and have you opened the inbound for 8080? - Jeet
Can you show what rules you have in your security group/ - error2007s
Verify that windows firewall allows this traffic in, if it is enabled. - Anthony Neace
The issue was the firewall. I added an inbound rule in firewall settings to allow http traffic. Now, it works fine. Thank you all. - dudedev

1 Answers

2
votes

I would open all traffic to all IPs, clear your DNS cache, and make 100% sure that your security group is assigned to the correct instance.

Once you get that to work, then reduce it back down to http/s only.

If you are in a VPC, then then check your access control lists. Is the subnet a public subnet?

Check your Windows Firewall settings. This can be overlooked.