I have installed mongo on machine1(Ubuntu 14.04.3 LTS server) in my local network. I have also opened the port 27017 as mentioned in this guide using f
Ubuntu 14.04.3 LTS server
27017
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