Does MongoDB Atlas support IPv6-only client for M2 instance?

I noticed that the IP Access List does not allow IPv6 entries. My server is IPv6-only.

How can I connect my service with MongoDB? Currently, all attempts lead to

Error: cannot connect to MongoDB. Details: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist:

Hi @Hung_Vu3, Atlas does not support connectivity via IPv6 addresses at this time. Out of curiosity, in what context are you using IPv6 addresses, is your app stack exclusively using IPv6 at this time?

Thank you for the confirmation.

My website ( is hosted on AWS. With AWS starting to charge the use of IPv4, so I migrated my infrastructure to IPv6.

The infrastructure is dual stack, but I simply remove Elastic IP to reduce cost. I let Cloudflare be the IPv6 compatibility layer to handle IPv4 traffic.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.