'I am unable to connect to Mongodb using mongosqld on windows

I am trying to create an on prem BI connector for my Atlas MongoDB Database. I have been able to install the connector but when i run

mongosqld --mongo-uri "mongodb://<URI-REPLICA-NODE-1:PORT>,<URI-REPLICA-NODE-2:PORT>,<URI-REPLICA-NODE-3:PORT>/?replicaSet=<URI-REPLICA-SET>&retryWrites=true&w=majority" --auth -u <USERNAME> -p <PASSWORD> --addr 127.0.0.1:3309 --mongo-ssl

But i am getting this error

unable to load MongoDB information: failed to create admin session for loading server cluster information: unable to execute command: server selection error: context deadline exceeded...

i have not yet found a viable solution for this. please help or point me in the right direction.

i am following this tutorial



Solution 1:[1]

I have been able to solve it. Apparently I had not whitelisted the IP address of the system where I was running mongosqld on.

As soon as I whitelisted it on my database it worked.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jo5h