See this issue: https://github.com/mongodb/mongo-php-driver/issues/133#issuecomment-164229017
Hello C.J. Wijtmans I'm sorry I didn't reply earlier but the mongodb build does support ipv6 so you just have to enable it using --ipv6 There's no option in the build system to enable/disable compiling its support, it's just part of it :)