Connection string in your command line password issue

Hi All, I am new for the mangodb. i try to connect my db via inbuild console. its showing below error. what was wrong here.
*** You have failed to connect to a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.

Error: connect failed to replica set atlas-cv5ibi-shard-0/,, :
exception: connect failed
exiting with code 1

Where it is saying it is a password issue?
Have you whitelisted your IP or allowed access from anywhere?

Hi Ramachandra , I entered my IP only

HI Actually Now again I created new DB and I Assgined IP as now its working, thank you Ram. Early I mentioned some IP address there.

1 Like

when I use (Allow access from any where its working properly) but when use my current IP its triggered Error

Also Please check below another one image. (per single post it allow only one img so posted one by one)

IP config

The IP you are whitelisting may not be the public facing one
Check with your network team or others with network knowledge can help you better
Does ip you have whitelisted match with whatismyipaddress?


A note here, the IDE for the course is not using your IP address. You need to open up unfortunately for using the course. You can make that change temporary (I would recommend this) by toggling the slider in the lower left corner and choosing one of the available time values:


OK thanks Doug_Duncan