How to connect mongodb cluster from mongodb compass?

5.1k views Asked by At

I created a free mongodb cluster. I created a user,set the connection to the mongodb compass, copied the connection string and then opened my mongodb compass .Pasted the copied string there,set the password and then pressed connect.It processes for a while and then throws a error of

connection <monitor> to 15.207.225.15:27017 closed.

Can someone solve it out .

5

There are 5 answers

0
Viktoriia Kovalenko On

You have to add your IP address to the IP access list before you can connect to your cluster. Follow the guide.

0
EMMANUEL EZEKA On

I came across the same issue and this is how I solved it.

Delete the project and create a new one with the same credentials used before (if you prefer) and try connecting back again.

Note: make sure to remember your password.

1
Denzal Williams On

just add a new Ip address just click on network access edit add your current IP address and you should be able to connect

0
Wilson Alves da Silva On

add a new Ip address -> network access menu -> add a new IP as 'access from anywhere' and may work

0
Sandoval0992 On

I deleted previous IP address from network access list and added it again.

Then I tried db connection from compass and it worked.