FP-Devicer - v2.0.2
    Preparing search index...

    Function subnetKey

    • Extract the /24 subnet string from an IPv4 address. Returns null for IPv6 or malformed addresses.

      Parameters

      • ip: string

      Returns string | null

      subnetKey("192.168.1.123") // → "192.168.1"