For Mongo to work with multiple replicas on MacOs or linux systems you have to add the following lines of code to /etc/hosts
:
127.0.0.1 mongo1
127.0.0.1 mongo2
127.0.0.1 mongo3
From what we know on Windows, it works out-of-the-box.