DEV Community

Nagarajan R
Nagarajan R

Posted on

Answer: Unable to connect to mongo on remote server

With mongoDB server version 3.6.4, Ubuntu 16.4.4 I solved this by setting the net section in /etc/mongod.conf like this:

net:
  port: 27017
  bindIpAll: true
#  bindIp: 127.0.0.1

Top comments (0)