Connecting to Mongo compass

Hi,
I’m fairly new to Moralis, I’ve been trying to connect to Mongo Compass or Robot 3T using my Moralis credentials.

I whitelisted my IP address.
My connection String :
mongodb://DashboardUser::DashboardPassword@MongoServer:PORT.moralis.io

Please let me know if I’m doing anything wrong.
Thank you

There isn’t a password, you only need IP and port

ok I tried that however I get this error
connection to monitor xxxx.xx.xx.x:xxxxx closed

Does this work for you:
https://docs.moralis.io/moralis-server/database/direct_access ?

No Actually,

raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: xxx.xx.xx.xx:56728: connection closed, Timeout: 30s, Topology Description: <TopologyDescription id: 621b82c713c40aa04b81a25f, topology_type: Unknown, servers: [<ServerDescription (‘165.22.70.24’, 56728) server_type: Unknown, rtt: None, error=AutoReconnect(‘xxx.xx.xx.xx:56728: connection closed’)>]>

Maybe you didn’t whitelist the IP

No I definitely did, that was the first thing I did, I even deleted it and Re-whitelisted it again.

Does the dashboard work for you to see the tables and data from db in admin interface?

You whitelisted your public ip and you don’t have some kind of firewall/vpn?

Yep I can see everything in the admin interface, all the tables.
I have no firewall/vpn on and I whitelisted my public IP yes.

Ok, strange.
Can you dm me the server url and what IP you are using to connect to it?

Somehow it worked, I removed the IP again and re whitelisted it once again… it just worked, I didn’t change anything though.

Thank you so much for taking your time into answering and being patient.