Ide not connect from local mongodb

when I connected from localhost MongoDB the connection refused

Post a screenshot of what you are doing that shows the issue you are having.

Provide a better context. Where is MongoDB running?

A connection refused occurs when you are trying to connect to a mongod that is not running, so it can be wrong address, wrong port. If on Atlas it is possible if the IP you connect from is not allowed, set Network Security to correct.

when i want to connect Ide from my local Mongodb server it gives this error. When i connect this address from Mongodb compass it connnect successfuly.

Hey @Virus_Hacker,

The IDE is the Integrated development environment (terminal) built to bypass all the local setup. Obviously it will not connect to your local setup.

Whereas the MongoDB Compass is the MongoDB admin GUI that is designed to speed up you workflow. It is installed on your system, so it will connect to your local MongoDB database.

I hope you got the context.

Thanks,
Kushagra

1 Like

then how we will pass the given examination of MongoDB.provide a path to qualify the given examination

Everything is done in the IDE. Follows the lab instructions and it will work.

1 Like

@Virus_Hacker, any followup on this? If your issue is resolved following one of the post here, please mark that post as the solution. If you resolved you issue yourself, please share the solution and mark your post as the solution. This way others will know they can follow the advises and keep this forum helpful and efficient.

1 Like