mongodb-memory-server-core
    Preparing search index...

    Function probeHost

    • Resolve the address a port probe should bind to, from the address the instance will bind to. A wildcard probe does not conflict with a listener bound to a specific address (for example a running mongod on 127.0.0.1), so it can report as free a port that mongod cannot take.

      Parameters

      • Optionalip: string

        The configured instance.ip, may be a comma-separated list like mongod's --bind_ip

      Returns string | undefined

      The first address of ip (default 127.0.0.1), or undefined for a wildcard address