Adding IPv6 to MongoDB cluster's trusted sourcess (IP Binding)

Posted November 28, 2021 196 views
MongoDBIPv6DigitalOcean Managed MongoDB Database

This may seems such a trivial question but it is possible to edit the MongoDB’s configuration file and bind multiple IP/range in order to restrict access to the database. (

This option is available on DigitalOcean’s dashboard for “Managed MongoDB Database” but it only allows IPv4. Recently I was trying to add an IPv6 to the list of “trusted sources” but I got an error saying only IPv4 is allowed.

Since we do not have access to the database cluster itself and can not configure it manually, does DO offer an option to allow IPv6 for trusted sources in the dashboard?

I searched a lot through documentation but could not find any clue.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @bbkkbbkk,

Restricting access to specific ports or IPv6 addresses is not currently supported with DO Managed database.

As we continue to work on improving our products and services, we encourage you to share your thoughts, ideas, or feedback you have at

This will help us to better prioritize features that you feel need more attention.