I have a simple index.html file running on nginx webserver, port 80 on aws ubuntu instance. I'm able to access the server through tunnel but, when i'm trying to connect using Public IP, it shows connection timed out.
I've tried many times creating a new instance from scratch but, it didn't work. Any help will be very thankful and if possible please try to keep it simple as i'm just a beginner in the case of webserver.

I fixed this by Amazon ec2 not working when accessing..

  • 1
    Do your instance's security groups permit traffic to port 80? – ceejayoz Nov 16 '18 at 20:01

The tunnel part makes it seem like the instance is on a private subnet but you attached a public IP. The public IPs need to be routes out the internet gateway. So they need to be in a public subnet.

If that is the case then you can add a ELB in a public subnet to front the instance with.

  • This one didn't work for me but by adding a network interface did.. Thanks for your reply Mike.. – Robins.Deepak Nov 18 '18 at 15:19

Check following settings are done or not : 1. Check if your VPC is having internet gateway attached 2. Check if network access control list is allowing inbound and outbound http traffic 3. Check if security group is allowing 80 traffic

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.