Correct bindIP for mongodb config file
I am trying to setup mongodb replica set as follows:
- Primary database on local machine
- Secondary database on DO droplet I am not clear what bindIP to use for config files for mongodb on local machine and on remote server (DO droplet). It looks like there is local bindIP: 127.0.0.1 and my droplet: 192.241.xxx.xx. Which one is used for which config file? My YAML file looks as follows for local machine:
systemLog: destination:file path:"C:\\data\\log\\mongodb.log" logAppend:true processManagement: fork:true net: bindIp:127.0.0.1 port:27017 storage: dbPath:"C:\\data" replication: replSetName:"data"