React Application not accessible through the EC2 Public IP

0

I have deployed my REACT application to the EC2 instance in the Linux server and serving with the Nginx.

The build files are served when I am accessing locally with curl localhost in the EC2 instance. Build file served using localhost

But when I am using my public IP, I am getting no response. Public IP giving no response

Note: All the necessary ports are already enabled in the inbound rules of security groups.

Any help is greatly appreciated. Thank you

3 Risposte
0

Hello.

Is your EC2 running in a public subnet?
Even if a public IP address is attached to EC2, you will not be able to connect if it is not started in a public subnet.

profile picture
ESPERTO
con risposta 5 mesi fa
0

Hello, Thanks for responding. I guess yes as I can see the Destination set to 0.0.0.0/0 in the route table of the Subnet my ec2 have. But you can have a look at the image below: Enter image description here

Incepta
con risposta 5 mesi fa
0

Also, this is my instance summary: Enter image description here

Incepta
con risposta 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande