How to connect to one-click MEAN stack Mongo DB from Robomongo

I’ve got the MEAN stack droplet one-click image up and running, and I’d like to connect to that database via Robomongo to look at it in a GUI, but Robomongo keeps giving me errors that it can’t connect to the server. it doesn’t even make it to the authentication stage.

I’m pointing Robomongo to <my droplet’s IP>:27017, which has always worked for services like MongoLab.


It works for me! Thanks

It appears that in the MEAN stack this feature is commented out by default in the /etc/mongod.conf. If you want to enable port 27017 you need to edit the configuration file to allow it. It is not allowed by default. Just do:

nano /etc/mongo.conf and un-comment: #port = 27017 to make it port = 27017

This should enable you to connect to your mongodb. If you have a firewall setup using “ufw” you will also need to allow that port for a remote connection. See instructions on firewalls

Best of luck.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I ended up discovering that the answer is to edit your etc/mongod.conf file’s bind_ip variable to include the IP of the computer you’re using, or eliminate it altogether.