Last Updated: February 25, 2016
·
7.291K
· ngsmrk

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.