Could not connect to MongoDB on the provided host and port - compass


I am not able to connect to the provided host. Nothing is running in 27017 and also also working fine.

1 Like

Hey @Shanmuga_99321

Does your Compass configuration look like the following? Which I have just tested.

The password can be found in the Connecting to MongoDB Using Compass Video in Chapter 1

@natac13 yes. My compass configuration looks exactly like this. I am using version 4.0.4. I am able to load but not able to give ping request.

Are you able to connect via the Mongo Shell?
Are you behind a proxy? There was another question that was asking about that here.

Other than that, Im not sure… What error appears at the top of Compass?

@natac13 Hi…no error appears .it just looks like a time out thing happening

Hi @Shanmuga_99321,

Have your tried everything mentioned in this thread: About the Chapter 1: Compass Connection ?

If you have, I would recommend restart Compass, try login again and let me know if the issue is still there.

Shubham Ranjan
Curriculum Support Engineer

1 Like