D
D
Dmitry Maslennikov2018-06-10 23:44:11
MongoDB
Dmitry Maslennikov, 2018-06-10 23:44:11

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

1 answer(s)
A
Aleksey Solovyev, 2018-06-10
@alsolovyev

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 question

Ask a Question

731 491 924 answers to any question