BP Saren
BP Saren

Reputation: 24

Can't not connect with mognodb atlas server

Database connection error: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://www.mongodb.com/docs/atlas/security-whitelist/ [nodemon] app crashed - waiting for file changes before starting...

I am trying to connect with mongodb Atlas cluster0

Upvotes: 0

Views: 107

Answers (2)

faizan
faizan

Reputation: 11

Sometime it might be due to Ip address but usually it is due to the node js version. So please install the latest node js version from its official website.

Upvotes: 1

ARITRA GHOSH
ARITRA GHOSH

Reputation: 59

If you are using MongoDB Atlas, follow the following steps:

  1. Go to network access
  2. Add IP Address

An image showing the steps to add/ allowlist IPs to connect

Upvotes: 0

Related Questions