Connection Failure (2)

I am trying to connect using the provided URI, but without success.

I downloaded and installed the MongoDB Enterprise. Inside the mongod.cfg I set bindIp to 0.0.0.0, as suggested.

Hi Miquel, thanks for the answer but I am not using any proxy settings or VPN at the moment. Still unable to connect.

You are using wrong connect string.What you have used is to connect from shell

Try this:
mongodb://m121:aggregations@cluster0-shard-00-00-jxeqq.mongodb.net:27017/?authSource=admin&readPreference=primary&appname=MongoDB%20Compass&ssl=true

2 Likes

Hi Ramachandra, thanks for your reply.

I managed to connect using the URI you provided, but I think the M121 course’s chapter 0 should be updated though, since their URI are wrong. I’ve tried the suggested URI:

mongodb://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?replicaSet=Cluster0-shard-0 --authenticationDatabase admin --ssl -u m121 -p aggregations --norc

Both mongosh and Compass won’t connect.

Have you whitelisted your ip or allow access from anywhere?
Did you try with --tls?
It should work from shell also

1 Like

May be this is related to

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.