Error connecting to the class atlas from mongo shell (Windows)

Hello,
I am trying to connect to the class atlas using the provided command: mongo “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/test?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics

Although, I am getting errors connecting as shown in the image.
image

Thanks,
Emmanuel

Hello Emmanuel,

perhaps you are behind a firewall;
You can try to connect directly to one server as was indicated in the Atlas connection cluster with Mongo Shell:

in your case:

mongo “mongodb+srv://cluster0-jxeqq.mongodb.net/test” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics

Regards,
Luis Durán

1 Like

Hi Luis,

Thank you for your response.
Eventually, I was able to connect to the cluster. It was more of a network issue from my end as you indicated also.

Regards,
Emmanuel

1 Like