I checked all the questions that are related to allowing port on AWS EC2 and I have tried the following:
sudo ufw allow 5000
sudo iptables -A INPUT -p tcp --dport 5000 -j ACCEPT
Also added the port to AWS SG as shown below
Still when I open my website it says:
This site can’t be reached
Am I missing anything? Are above rules are correct and secure?