In browser IDE error: You have failed to connect to a mongodb atlas cluster. Please ensure that your IP whitelist allows connections from your network


I cant connect to the mongodb atlas cluster please resolve this issue

Hi @Surendra_Kumar_Kothuru, welcome to the community.
Can you please ensure that you have added access to all the IPs to connect to your Atlas Database Deployment?
If not, please follow the following steps:

  1. Go to the Network Access Tab of your Atlas Dashboard
  2. Click on Add IP Address
  3. In the “Add IP Access List Entry” pop up, click on Allow Access From Anywhere

Please note that we are allowing access from anywhere just because we want our in-browser IDE to access the data from our Database Deployment, be careful :warning: when you are doing it for your apps in production.

If you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
MongoDB

2 Likes