I am a beginer in mongoDB and learning Mongodb atlas.
In MongoDB Atlas, Under database access created username and password ( password is system generated and has no special character)
Under Network access added a public ip address (allow access from anywhere)
Under database deployment loaded sample database.
Now I wanted to see my cluster data, so wanted to connect it to vs code or MongoDB Compass. I clicked connect , selected connect using mongo db compass, copied the string.
now i opened Mongodb compass, and under New connection i.e connect to a MongoDB deployment , i entered my URLmongodb+srv://gourav_singh:7gamf8UkL8B6MET@cluster0.9dmds.mongodb.net/test
clicked Connect But i got error as : Unable to connect: connect ECONNREFUSED 3.6.85.199:27017
How I can fix it, Looking for kind help. Thanks in advance
I tried adding my current ip address under network access, but still facing the same issues. And another way to whitelist ip address is to do it under security tab but security tab is not available for free community version. Looking for kind help.
Thank you sir but sir i generated another url mongodb+srv://gouravsingh:gouravsingh@cluster0.3iv7ree.mongodb.net/test
but still facing the same issues.
may you please check whether this works for you, it is still not working for me, i can connect to local server which works well but cloud isn’t working