Server selection timed out after 10000 ms

Hi guys i am trying to connect to mlab atlas using compass and the given credentialls,
but i got the error of Server selection timed out after 10000 ms.

Anyone .i need a help.

Hi @Gaolatlhe_65701,

It might be due to some network related issue at your end.

Can you please make sure you are able to ping the cluster by running the command mentioned below in the command prompt/terminal ?

ping cluster0-shard-00-00-jxeqq.mongodb.net

And also please verify that port 27017 is not blocked by clicking http://portquiz.net:27017 .

On some occasions, even though the above mentioned tests passes, network is still a problem. So please make sure you are not connected to any VPN network and firewall/antivirus is disabled. You can also try to connect from some other network such as your home network.

Hope it helps!

If the issue still persists please feel free to get back to us. Happy Learning :slight_smile:

Thanks,
Shubham Ranjan
Curriculum Support Engineer

Hey. Both tests have passed for me, but I still get timeout. : / Any furhter suggestions?

Thanks,

  • Joshua

I think I initially setup the connection as Primary. I just reconnected with Primary Preferred and now I’m able to pull documents.

Hi @joshua_50342,

I’m glad your issue got resolved. If you have any other query, please feel free to get back to us.

Happy Learning :slight_smile:

Thanks,
Shubham Ranjan
Curriculum Support Engineer