Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-151

Use IPv4 address in Client's default connection URI

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.0.0-beta2
    • Affects Version/s: 1.0.0-beta1
    • Component/s: 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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: