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.
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
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
4)First, click on inbound and then click on Edit which is shown below
5)Now please follow the following steps to Add Rule which is shown below
- First click on ADD Rule
- Select the type i.e. HTTP or HTTPS or TCP or UDP etc
- Enter port number
- Enter the IP address as 0.0.0.0/0
- Click on Save
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.