How to make sure mongodb is running on oneclick mongodb droplet

November 15, 2017 71 views
MongoDB Ubuntu 16.04

I am trying to run a node app and am getting mongoerror failed to connect to server [IP] on first connect

How do I solve this? I want to have a separate database server than my web server. I have tried public and private IP's and neither worked.

When I do mongod it shows the database is running so that it out.

Be the first one to answer this question.