Connection to the Mongo Shell

getting this error –

2 total, 0 passed, 0 skipped:
[FAIL] “Successfully connected to the Atlas Cluster”

Did you use the right command with the Atlas provided connection string?

[FAIL] “The username is m001-student”

Did you create a username m001-student?

Hi @Deepak_Sharma4,

Can you share the screenshot of the IDE or your Atlas connection string with us!!
So, we can check on our end!

Thanks,
Kushagra

mongo “mongodb+srv://sandbox.fa0or.mongodb.net/myFirstDatabase” --username m001-student

Hi @Deepak_Sharma4,

Can you confirm that you have whitelisted your IP address in the Network tab of the Atlas cloud.!!

Thank you,
Kushagra

IP Address Comment Status Actions
3.214.160.189/32 Active

Are you running that command on atlas or locally?
Please, Include a screenshot.

1 Like

The IP address seen by the Atlas cluster is not necessarily the IP address of your PC. It might be the NAT address of your router or the exist point of your VPN. And for this course it is the exit point of the IDE container. So it is better to allow from Anywhere for this course.

1 Like

Yes Steeve,
I figured out that it was something with IP , so Changed to 0 as a default & Things are Looking Good .

Thanks a lot.
Regards,
Deepak Sharma