MongoDB was installed on Ubuntu 16.04.
When i connect the mongo on my pc, I get the error:
Failed to connect to 192.168.1.118:27017, reason: errno:61 Connection refused
change /etc/mongod.conf
file
bind_ip = 127.0.0.1
port = 27017
to
bind_ip = 0.0.0.0
port = 27017
restart it
sudo service mongod restart