Not able connect to MongoDB database

My connection string is correct. My IP address is whitelisted. But still authentication fails. What all are the possible reasons?

Hi @geetha_vasu,

Kindly take a look at the Frequently Asked Questions.
If the problem still persists, share the screenshot of the IDE with the error message with us.

Kind Regards,
Kushagra

I am using mongodb compass. The same string when copied by another employee, he is aboe to connect ro the same database. The error showing is Authenticatioj failed. Are there any other files or logs where we can know the details of the error.

I checked frequently asked but lacks clarity.

You have the wrong username or password.

You may go to your cluster page and in the right side go to network access and change the IP address to 0.0.0.0/0 and retry.