Answer the question
In order to leave comments, you need to log in
How to remotely connect to MongoDB?
How to remotely connect to MongoDB only from a specific IP address?
If you change bindIp from 127.0.0.1 to 0.0.0.0 in the settings, then you can connect to the database from any address, and access is required only through a specific IP address.
Answer the question
In order to leave comments, you need to log in
bindIp: 0.0.0.0
On the server block access to port 27017 leave only for your IP
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question