Hi
When I connect to my cluster like this everything is fine:
mongosh "mongodb+srv://<USER>:<PASS>@<CLUSTER-NAME>.a6uds.mongodb.net"
Current Mongosh Log ID: 61124b0978c007112d0cd89a
Connecting to: mongodb+srv://<credentials>@<CLUSTER-NAME>.a6uds.mongodb.net/
Using MongoDB: 4.4.8
Using Mongosh: 1.0.1
but when I try to connect to selected secondary node it cannot connect, any ideas way?
$ mongosh "mongodb://<SECONDARY-NAME>.a6uds.mongodb.net:27017" --username <USER>--password <PASSS> --authenticationDa
tabase flightmgmt
Current Mongosh Log ID: 61124bf3d39dc6552a363b1a
Connecting to: mongodb://<NAME>.a6uds.mongodb.net:27017/?directConnection=true
MongoServerSelectionError: connection <monitor> to 3.120.95.31:27017 closed
And my public IP address is added to the white list in network access page.
Any ideas why I cannot connect to the secondary node?
-Jacek