Answer the question
In order to leave comments, you need to log in
How to connect to MongoDB on the local network?
Hello. I decided to deploy my apishka locally - I made a server from a laptop.
Deployed the API, installed Mongu on the same computer and it all worked - hooray!
I connected like this: mongodb://localhost:27017/root
I want to connect to monge from another computer on the same network, but the connection fails due to a timeout.
mongodb://192.168.31.44:27017/root
I sort of allowed all IPs on the mongo side, opened ports 27017 on both computers for input and output, but it doesn’t connect :(
Answer the question
In order to leave comments, you need to log in
By default the monga runs on 127.0.0.1. That is, you need to specify host 0.0.0.0 in the configuration, or the one you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question