Answer the question
In order to leave comments, you need to log in
How to properly connect to remote MongoDB?
Good afternoon
I'm trying to connect from a local computer to MongoDB located on a remote server, access to which I use via SSH I
connect as follows:
mongoose.connect('mongodb://root:[email protected]:22/database')
MongoError: server 44.32.35.58:22 received an error {"err":"socketHandler","trace":"","parseState":{"sizeOfMessage":7597146
43}}
Error: connect ECONNREFUSED 44.32.35.58:3306
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question