Ubuntu – How to open ports in amazon (AWS) Lightsail

amazon-web-servicesUbuntu

I try to open a port in my instance of AWS Lightsail to be able to raise an application in NodeJs. Enable the Firewall rules as seen in the image.

enter image description here

but when I run sudo nmap -sT -O localhost I can see that the port is closed.

enter image description here

The port that I try to open is 4000. UFW is inactive. Would appreciate your help.

Best Answer

The firewall and port settings are listed in the Networking tab of your instance's management page in the Amazon Lightsail console. Choose Edit rules or Add another to change or create rules.

More info:

Amazon Lightsail Info