I have a MERN app and I have successfully deployed it on an AWS EC2 instance.
In the production environment, the app is served on port 80.
So when I try to access it on the browser by entering:
EC2_INSTANCE_PUBLIC_IP_ADDRESS:80
or
EC2_INSTANCE_PUBLIC_IP_ADDRESS
It just keeps loading until it finally reaches this state:
This site can’t be reached EC2_INSTANCE_PUBLIC_IP_ADDRESS took too long to respond.
Try:
Checking the connection Checking the proxy and the firewall ERR_CONNECTION_TIMED_OUT
I tried to run the frontend app separately as I do in the development environment on port 3000
, so when I try to access it on
EC2_INSTANCE_PUBLIC_IP_ADDRESS:3000
The same thing happens.
Any idea what's going on?
CodePudding user response: