How to open port on aws ec2 instance

What you will learn here about ec2 instance port opening

  • How to open port on AWS ec2 instance
  • Why do I get this site can’t be reached

In order to open a port for a particular EC2 instance on AWS, you need an EC2 instance. If you do not know how to create an EC2 instance on AWS please click on the following link.

AWS create ec2 instance

How to open port on AWS ec2 instance

Please follow the following steps to know how to open port on AWS ec2 instance

1)Please sign in to your AWS account.

2)Now please go to your EC2 instance which is shown below

Services -> EC2

EC2 instance path aws

3)Now please click on EC2 instance on which you want to open the port and Click on your Security groups name which is shown below
How to open port on AWS ec2 instance

4)First, click on inbound and then click on Edit which is shown below
AWS ec2 open port

5)Now please follow the following steps to Add Rule which is shown below

  1. First click on ADD Rule
  2. Select the type i.e. HTTP or HTTPS or TCP or UDP etc
  3. Enter port number
  4. Enter the IP address as 0.0.0.0/0
  5. Click on Save
    ec2 open port aws

This is how we open the port for EC2 instance on AWS.

Why do I get this site can’t be reached

You have successfully created and install a particular service on it but still, you are getting an error this site can’t be reached right! So there are two possibilities because of which you can get this site can’t be reached an error.

Possibility 1: You need to need to open port related to your respective service which we have seen earlier. For Example, If you have installed MQTT broker on AWS EC2 instance then you need to open a port number 1883 for the particular EC2 instance which we have seen above.

Possibility 2: You are accessing the wrong Public IP address. If you are using the wrong public IP address then also can get his site can’t be reached an error.

You may also like...

Leave a Reply