I currently have an EC2 instance and it works with Amazon Linux and transferred my project (which contains both React / NodeJS / Express) to the EC2 instance via SFTP using FileZilla.
For EC2 security groups, I opened a port for 3000 (protocol: tcp, source: 0.0.0.0/0), which also defines my express.
So, I sneaked into the EC2 instance and ran the Express project, and saw that it was listening on port 3000 in the terminal. But as soon as I hit Public DNS with help ec2...us-west-1.compute.amazonaws.com:3000, it says that the site cannot be reached - ec2 ... us-west-1.compute.amazonaws.com is too late to respond.
What could be the problem and how can I go from here to connect to it?
Thank you in advance and reply / accept the answer.
source
share