Server selection timed out after 30000 ms

Server selection timed out after 30000 ms

Hi @Varun_59975,

In most of your threads the information that you have provided is not enough to get the full picture of what issues you are exactly facing. So, please make sure that in your future post you include as much information as possible.

Please share the connection string you have used.

Most likely you are using Compass to connect to either the class atlas cluster or sandbox cluster.

If you are trying to connect to the class atlas cluster then please use this connection string :

mongodb+srv://m001-student:m001-mongodb-basics@cluster0-jxeqq.mongodb.net/test

If you are trying to connect to your sandbox cluster then please follow the instructions mentioned in this lecture - Chapter 2: Connecting to Your Sandbox Cluster from Compass.

Hope it helps!

~ Shubham

1 Like

Its working now. Thanks!