Connecting with MongoDB Shell

I have an issue connecting to the cluster with mongodb shell.
I have also checked that port 27017 is not blocked.
Below the error message that I get:

Hi @Matthias_65123,

Please search the forum before asking any question as there are very high chances that the same question has been asked before :slight_smile: .

Please refer this post and use the connection string shared by @007_jb.

Hope it helps!

~ Shubham

1 Like

Hi Shubham,
When using the above connection string I am able to connect, the only issue is that I have the same issue when trying to connect to my sandbox. And I do not know how to create such a connection string for my sandbox cluster.
Thanks for the help!!!

Hi @Matthias_65123,

Login to your atlas account and follow the steps for getting the connection string.

When you see this pop-up select version 3.4 or earlier from the drop-down menu and use this connection string for connecting to your sandbox cluster.

Hope it helps!

Please feel free to get back to us if you have any other issues.

Thanks,
Shubham Ranjan
Curriculum Services Engineer

1 Like

@Shubham_Ranjan
Thanks a lot for the help it worked.
Have a great weekend!

@Matthias_65123

Happy Learning :beers: :slight_smile:

~ Shubham