I follow this mongoose document enter link description here
mongoose.connect(\'mongodb://localhost/waterDB\');
Using This, I can connect lo
You will have to use SSH tunnel in this case. Refer to the following link which shows how you can create SSH tunnel. Node.js SSH Tunneling to MongoDB using Mongoose