Refused to connect

0

This site can’t be reached IP Adress refused to connect. Try:

Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED

  • More information needed with your setup. What you are trying to achieve and where you are seeing the error.

asked 4 months ago140 views
2 Answers
1

Hi,

to simplify the resolution of you current issue, I would suggest to start by connecting with EC2 Instance Connect: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-linux-inst-eic.html

This tutorial may be helpful: https://www.youtube.com/watch?v=lxSNeF7BAII

If you have problems with Instance Connect, follow this guidance: https://repost.aws/knowledge-center/ec2-instance-connect-troubleshooting

When instance Connect works, you can go to next step with remote SSH.

Best,

Didier

profile pictureAWS
EXPERT
answered 4 months ago
  • I have tried the given answers but it is not coming can you me any other @Didier_Durand

0

With the limited information provided, it looks like you are trying to host a website on EC2? If so this error could happen whenever the security group does now allow the port (80/443) you are trying to connect.

profile pictureAWS
Anand
answered 4 months ago
  • Can you please tell the inbound and outbound rules to be added for depolying django i tried all but it is showing like that only following i added security group rule ID

    I

    SSH Inbound rule 1 Type TCP 22

    Custom Inbound rule 1 Source 0.0.0.0/0

    Permit web requests

    HTTP Inbound rule 2 Type TCP 80

    Custom Inbound rule 2 Source 0.0.0.0/0

    Delete sgr-0f3441ebaf79506f4

    HTTP Inbound rule 3 Type TCP 80

    Custom Inbound rule 3 Source ::/0

  • Kindly check the port on which you are running the webserver in the configuration. You should see something like 'runserver x.x.x.x:<port>'.
    You need to allow that specific port in the security group or update the config to port 80 which is already allowed in your security group (assuming nothing else runs on port 80)

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