ERR_CONNECTION_REFUSED when building employee directory app

3

I'm a beginner going through the tutorial to create the "Employee Directory App" from the AWS Technical Essentials program. I've gone through each step in detail, successfully launching my instance on EC2. When copying the public IP in a new browser tab as shown in the video, I get an ERR_CONNECTION_REFUSED error.

I've double checked everything (Security Groups, Permissions, etc...) and everything matches what was done in the video. Any idea what may be causing the error?

Thanks!

asked a year ago560 views
4 Answers
0

Please refer to the following document to confirm that the problem is not on the browser side.
https://support.google.com/chromebook/answer/1085581?hl=en

Also, see if you can connect to the EC2 IP address from your computer with the following command.
If you are able to access the site with the following commands without any problems, the problem may not be on the EC2 side, but on your computer.

curl http://EC2 IPaddress
profile picture
EXPERT
answered a year ago
  • Thanks for the suggestion. Unfortunately, still no luck. I checked what was recommended by Google support and that didn't work. I also ran the curl command and got this error: "curl: (7) Failed to connect to [EC2 IPaddress] port 80 after 94 ms: Couldn't connect to server"

  • I thought that the web server was not running on EC2. How is the web server installed? Also, can you share the operating system you use for EC2?

0

you might want to check the user data script that should install the application on the ec2 instance, and whether it is compatible with the AMI you are using, you can connect to the ec2 using instance connect and then try to run the script manually with sudo permissions and see if it gives any errors

AWS
answered a year ago
0

HI there, running through the same training. It worked for me with http:// but not for https://. So try if http works.

any suggestions?

Thanks

answered 6 months ago
0

I have the same problem. http works fine but with https I've got the following message from my browser: This site can’t be reached18.101.32.181 refused to connect.

Where 18.101.32.181 is the public IP address asigned. Apparently my security groups are correctly configured: Enter image description here

I'd appreciate if someone can help with this.

Javier.

jep
answered 6 months 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