0

enter image description here

As it can be seen from the screenshot that the MongoDB shell is connected to the localhost. I want to connect it with an external replica set like this(given below) for my study purpose. But could not do so. Please suggest a way out.

"mongodb://m121:aggregations@cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?repilicaset=cluster0-shard-0" --authenticationDatabase admin --ssl -u m121 -p aggregations --norc
Wernfried Domscheit
  • 54,457
  • 9
  • 76
  • 110

1 Answers1

0

What IP-addresses mongod is listening? (mongod.conf, net.bindIp or net.bindIpAll)

If you don't have either there, then the system is listening only localhost address.

config-file net-options

JJussi
  • 1,540
  • 12
  • 12