Use IPv4 address in Client's default connection URI

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Critical - P2
    • 1.0.0-beta2
    • Affects Version/s: 1.0.0-beta1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      By default, mongod does not listen on IPv6; however, "localhost" may resolve to an IPv6 address on some machines, which could lead to a connection failure (as discussed in mongodb/mongo-php-driver#133). Changing "localhost" to "127.0.0.1" should avoid this.

      Note: this is still a documentation issue, as users will need to be careful about using hostnames that resolve to IPv6 addresses unless net.ipv6 is enabled in the MongoDB configuration.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: