Can't connect to mongo atlas

Unable to connect GUI to Mongo Atlas and after running this command to cmd, it again fail to cinnect.

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

This link also don’t work http://portquiz.net:27017/

Hi @Ritik_20533,

It means that the outgoing traffic to port 27017 is probably blocked on your local network. Please contact your IT department to see if there is a workaround or try to make the request from another location such as your home network.

If the port 27017 is blocked then you will face the connection issue in the mongo shell as well.

Hope it helps!

If you still have any query then please feel free to get back to us.

Happy Learning :slight_smile:

Thanks,
Shubham Ranjan
Curriculum Support Engineer