Can't access node.js API on port 3000 on AWS EC2 instance, but netstat
shows port :3000 listening and my AWS security group has TCP rules for this port. What else could the problem be?
I've tried changing port, setting security group rules and adding port to iptables
and it didn't work. I'm using node 10.6.0.
When I use netstat -tulpn | grep LISTEN
it contains the following line:
tcp 0 0 127.0.0.1:3000 0.0.0.0:* LISTEN 8270/node
When i try to access myip:3000/socket
(my node endpoint) it shows: ERR_CONNECTION_REFUSED