steevej
(Steeve Juneau)
6
If I understand correctly the following:
1 - you have 2 machines
2 - you are running mongod on machine-1
3 - you are trying to connect with mongo on machine-2 using 127.0.0.1
Read about localhost to understand why it does not work.
Localhost or 127.0.0.1 refers to the same machine as you are running. So on machine-2, 127.0.0.1 is machine-2 and on machine-1, 127.0.0.1 is machine-1. From machine-2 you have to specify the host name or IP address of machine-1 in order to connect to mongod running on machine-1.
1 Like