Atlas connection is closed when connect with the mongodb compass

When I connect to the MongoDB Atlas to the MongoDB Compass, I can’t connect to the MongoDB Atlas. I got the the connection is closed.

Hi @San_54816,

You need to update your IP Whitelist. Please follow the steps below:

  1. Login to your Atlas account and click on the Network Access in the Security section. Refer to the screenshot below:
  2. Then click “IP Whitelist” followed by “Add IP Address”.
  3. Finally, click “Allow Access from Anywhere” and click “Confirm”.

I hope it resolves the issue.

Please let me know, if you have any questions.


1 Like

It could be a wrong password too. In “Security -> Database Access” tab, edit the password if changing the IP WhiteList don’t work.