_wnwna
Last Updated: February 25, 2016
·
5.734K
· ngsmrk
747a12bd5b256c71c02c37a1306eb3d8

Binding mongo to multiple IPs

Find your mongod.conf - the default is in /usr/local/etc/mongod.conf

Find the line that says
bind_ip = 127.0.0.1

Added as many addresses as you need using commas as a separator - e.g.:

bind_ip = 127.0.0.1,myserverIP

Note you can use DNS names as well.

Say Thanks
Respond