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:
- Login to your Atlas account and click on the Network Access in the Security section. Refer to the screenshot below:
- Then click “IP Whitelist” followed by “Add IP Address”.
- Finally, click “Allow Access from Anywhere” and click “Confirm”.
I hope it resolves the issue.
Please let me know, if you have any questions.
Thanks,
Sonali
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.