I am running a MongoDB service on port 27017 on a server. Both of:
lsof -i netstat -a
Show that port 27017 is listening. I can connect to the service locally, but when I try to connect from an external machine the connection is refused. Running nmap on the port locally shows it as open, but running externally shows closed. I have completely reset the iptables and allowed connection via port 27017, and ufw is disabled. The mongodb config is set to allow access from all ips. What am I missing here?