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.
but when I run nmap -sT -O localhost I can see that the port is closed.
The port that I try to open is 4000. UFW is inactive. Would appreciate your help.