Connection Fail with Node.js to MongoDB

Hi,
I’m new in MongoDB in connection with Node.js. A simple programm doesn’t work and I could nowhere find a solution. I appreciate it very much, if someone could help me out. The programm is showed below together with the console error message and the message in register Problems. I thank you very much for showing me a solution for the problem.


The IP should not be a problem, because I tried to connect by Compass and it worked. Also I inserted the IP “0.0.0.0/0” for an open access-point in Network Access.

Leave off everything after the .net and see if that works.

Unfortunately it doesn’t work.

Is your mongoose up to date?

Are you running a local windows firewall or does your AV have a firewall that blocks things? Could try your disabling it for a few minutes to test before turning it back on?

1 Like

I use the version listed below:

You’re up-to-date on Mongoose and MongoDB for Node.js

The guess that it be some kind of firewall issue on your side sounds pretty good.

  • What is your execution platform? (Windows / MacOS / Linux etc.) ?
  • What is your firewall situation?
1 Like

The problem is finally solved. I opened the windows firewall for node.js and I also updated node.js and npm. Thank you so much for helping :slight_smile:

2 Likes