Connect to internet EC2 instance

0

I cannot connect my EC2 instance to the internet. More specifically i have added the inbound traffic rules to http and https but still my public IPv4 address on opening in the browser shows error PR_CONNECT_RESET_ERROR to be precise. I am new to aws and would like some help in the matter.

asked a year ago326 views
2 Answers
0

Please check the following things should be properly setup on your AWS account and server.

Make sure that your instance is associated with a public IP address. You can do this by going to the EC2 console, selecting your instance, and checking the "IPv4 Public IP" field. If there is no public IP address associated with your instance, you will need to allocate one and associate it with your instance.

Check that your security group rules are correct. In addition to adding inbound traffic rules for HTTP and HTTPS, you should also make sure that your instance's security group allows outbound traffic to the internet. You can do this by adding an outbound rule with a destination of 0.0.0.0/0 and a protocol of TCP, with ports 80 and 443 allowed.

Verify that your instance has a properly configured network interface. Check that your instance is attached to a VPC, and that the VPC has an internet gateway attached. You should also make sure that your subnet's route table directs traffic to the internet gateway.

Confirm that your instance has the necessary software and configurations to serve web traffic. Check that your web server software (e.g. Apache, Nginx) is installed and running and that your instance's firewall allows traffic on ports 80 and 443.

answered a year ago
0

Stateful Firewall use implicit deny. When you Allow an inbound you by default Allow outbound. Troubleshoot using telnet to verify. Verity that you have a IPv4 by identifying the IGW. If you created a custom VPC verity the subnet association and public IPv4 is enabled.

profile picture
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions