NodeOPCUA API Documentation
    Preparing search index...

    Function isIPAddress

    • Check whether a string is an IP address (v4 or v6).

      Returns 4 for IPv4, 6 for IPv6, or 0 if the string is a hostname (not an IP literal).

      Useful for segregating alternateHostname and advertisedEndpoints values into SAN dNSName vs iPAddress entries.

      Parameters

      • value: string

      Returns 0 | 4 | 6