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.

demandé il y a 4 mois149 vues
2 réponses
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
répondu il y a 4 mois
  • 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
répondu il y a 4 mois
  • 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)

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions