i have a problem to make a connection to mongodb.
I have installed MongoDB on a external Ubuntu Server with node.js and connected to the server over VSCode SSH Connection on the Terminal.
I want to test if i can connect to mongodb, but it gives an error in the shell.
ECONNREFUSED means no server is listening at the given address and port.
Assuming you are using the same installation as your previous post
you are doing the same error as before. You are using the default port 27017 rather than the port used by the server, that is the one specified in the configuration file. From your previous post this port is 10000.
But since you
the cause might be different. In your other post, you also mentioned using 2 machines. May be the mongo log message you see is from a machine different from the machine with the host name tutorial.
Basically, ECONNREFUSED means wrong address, wrong port or no listener. You seem to have a listener on the correct port, so the address must be wrong.
Another question.
Which username and password should i use in the URI String´?
The Access Data from my external Server, where i have installed MongoDB and Node.js or has MongoDB own Access Data, which should be defined in any config from mongodb?