Hello there!
I face a problem with connecting my MongoDB (version 4.4.2).
I run it without Docker and I try to connect it with a docker instance of Metabase on the same hardware.
When I try to connect it and write localhost
as the host value I get the following error.
Database name : Timed out after 3000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]
When I paste the router’s ip, it connects properly. For obvious reasons I would love to use the localhost and not the router’s ip address.
Anyone facing the same issue than can help me solve this?