Unable to connect to the Atlast cluster using Mongodb shell

I get the following error:

W NETWORK [js] Unable to reach primary for set atlas-8e9jjk-shard-0
Error: connect faile to replicat set atlas-8e9jjk-shard-0/sandbox-shad-00-02.im688.mongodb.net.:27107,sandbox-shard-00-00.im688.mongodb.net.:27107,sandbox-shard-00-01.im688.mongodb.net.:27107:

I’ve verified my password/username (I used the ones from the lesson).
I can access the Atlast dashboard.

Can you go at http://portquiz.net:27017 with your browser?

If not, then you have a firewall or VPN blocking outside connection.

However, that should not be an issue since you are supposed to use the browser IDE for this course.


Outgoing port tester

This server listens on all TCP ports, allowing you to test any outbound TCP port.

You have reached this page on port 27017 .

Your network allows you to use this port. (Assuming that your network is not doing advanced traffic filtering.)

Network service: unknown

Have you allow traffic from anywhere in the security setting?

@steevej That was it! I used my connected IP instead of because even as I read the instructions to allow connect from anywhere there was also a warning not to allow it in prod… so I did it the wrong way for the course. I can connect now and get to the next course.

Hi @Sachin_Myneni,

We’re glad that the problem was resolved. So, we are closing this thread for now.!!
In case of any further issues or queries, please feel free to reach out by creating new post in a relevant category.

All the Best,