I’ve setup a droplet with Shared Private Networking enabled. I’ve provisioned it with Ubuntu 12.10 x64. Also, I’ve installed mongodb using ‘sudo apt-get install mongodb’ command.
I tried using mongoose to connect to the mongodb droplet using the default port. It said failed to connect.
I used the command below:
var mongoose = require(‘mongoose’); mongoose.connect(‘mongodb://XXX.XXX.XXX.XXX:27017/database’);
Things I’ve tried…
Any idea what I could try to verify it or what I can do to resolve this?
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.