I am unable to connect to the cluster

MongoServerSelectionError: read ECONNRESET. It looks like this is a MongoDB Atlas cluster. Please ensure that your Network Access List allows connections from your IP.

Hi @Nithin_Reddy_Nagapur and welcome to MongoDB community forums!!

Could you confirm if you have performed the needed steps to whitelist the IPs in your Atlas cluster.
You can follow the procedure to Add Your Connection IP Address to Your IP Access List and let us know if the issue still persists.
If after performing the above steps you are sill seeing the similar error, could you help us with the following information:

  1. The Atlas Tier you are on
  2. Steps which you have followed which made you land on the above error message.
  3. Are you using a VPN servers?
  4. The client (failing to connect) environment details (e.g. Driver, Driver version, MongoDB Compass, Operating system details).
  5. The results of the network tests as mentioned in the following post (but for your own cluster) from the client attempting to connect.


I’m new to this MongoDB. I am trying to create the Atlas cluster repeatedly. But the error is coming. So, please clear this issue.


In general it is preferable to start a new discussion to keep the details of different environments/questions separate and improve visibility of new discussions. That will also allow you to mark your topic as “Solved” when you resolve any outstanding questions.

Mentioning the url of an existing discussion on the forum will automatically create links between related discussions for other users to follow.

Please have a look at How to write a good post/question for some ideas on best practices.

I also recommend reading Getting Started with the MongoDB Community: README.1ST for some tips to help improve your community outcomes.