Bind IP

The default setting of Mongo DB is using 127.0.0.1 : 27017 As a result, it is not possible for external host to acccess. For example give the host is 192.168.10.155, the external host cannot access due to the bind_ip is 127.0.0.1.

To enable the access from the external, Go to /etc/mongodb.conf Modify the the bind_ip: 127.0.0.1 to bind_ip: [192.168.10.155, 127.0.0.1]

After the save the new configure, restart the mongodb service to activate the changes

sudo service mongod restart

You can try to access through the UI Interface Robomongo, this is a database tool.

http://stackoverflow.com/questions/29109134/how-to-set-mongod-conf-bind-ip-with-multiple-ip-address

Last updated

Was this helpful?