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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
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 port27017
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 itport = 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.