i have simple nodejs app running on ec2 instance, when tried to access the app from browser using "ec2-18-223-0-201.us-east-2.compute.amazonaws.com:4545 refused to connect."
it give me
This site can’t provide a secure connection
when trying to curl it from VM using curl http://localhost:4545
it works correctly, however when trying curl http://127.0.0.1:4545
it give me this output
Found. Redirecting to https://127.0.0.1:4545/
here's my security rules for the instance, i'm allowing all ip's to access the instance
also checking if the app is running at port 4545
sudo netstat -tulpn | grep :4545
tcp6 0 0 :::4545 :::* LISTEN 1942/node
I've been stuck into this issue from yesterday without any luck, neither know what's the cause, i've tried several solutions, non works :/