[SOLVED] Connect mongodb compass with moralis server error

I have already whitelist my IP (Public IP get from ip chicken website and also try curl command in terminal to get the IP) and then add the Mongo DB IP & PORT in my mongodb compass connection string but I unable to connect my moralis server with mongodb compass.

Do you get an error? Is your connection string like this:

mongodb://159.223.96.105:56728

Check your firewall settings.

Yes my connection string is like this

Do you get an error message when you try to connect?

Yes got this error connection to (mongodb ip) closed

This error can happen if the current IP address hasn’t been whitelisted. Can you reload your server settings page and see if it has been set properly? If it has, try removing/re-adding the IP address and then restart your server.

Yes i have already tried this many times but this same error arries.

I have also tried to get my public IP from different websites and also using commands in terminal. All that IP’s were whitelisted and when i am whitelisted an IP after that reload the server every time but till i get this same error.

Please tell me where i can find my correct public IP.@alex

You can get it from a site like https://ipleak.net/ but it should be the same as on ipchicken. Try disabling your firewall.

1 Like

It’s connected now thank you @alex

2 Likes

Save button below the page is not visible enough, I thought it was saved right after clicking on + Add button. took my 45 minutes finding that there actually was a button below the page, after trying different SQL clients! that new hello kitty UI theme of moralis is not functional.