Search code examples
mongodbipv6

Binding MongoDB to IPv6


All MongoDB programs and processes disable IPv6 support by default, I already try bellow command to binding with IPv6 but it is not working:

mongod --dbpath ~/mongoDB --ipv6 --bind_ip 2004:c000:302::2

How can i enable IPv6 in MongoDB? and how can i bind MongoDB to IPv6?


Solution

  • at the end enable IPv6 by removing --bind_ip, like this:

    mongod --dbpath ~/mongoDB --ipv6