An Issue with an AWS EC2 instance WebSocket connection failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT

做~自己de王妃 提交于 2019-11-29 17:20:19

When it comes to a connectivity issue with an EC2 there are few things you need to check to find the root cause.

  • SSH into the EC2 instance that the application is running and make sure you can access it from within the EC2 instance. If it works then its a network related issue that we need to solve.
  • If step 1 was successful. You have now identified it is a network issue to solve this you need to check the following.
    • Check if an Internet Gateway is created and attached to your VPC.
    • Next check if your subnets routing table has its default route pointing to the internet gateway. check this link to complete this and the above step.
    • Check your subnets Network ACLs rules to see if ports are not blocked
    • finally, you would want to check your Instances Security group as you have shown.

If you need access via a EC2 dns you will need to provision your ec2 instance in a public subnet and assign an elastic IP

If an issue still exists check if the EC2 status checks pass, or try provisioning a new instance.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!