hammerspoon2-docs
    Preparing search index...

    Function reachabilityForAddress

    • Creates a reachability monitor for a specific IP address. Returns null if address is not a valid IPv4 or IPv6 address literal. Under the hood this monitors general system connectivity (the same as reachabilityInternet()), because NWPathMonitor does not support per-address targeting.

      Parameters

      • address: string

        An IPv4 or IPv6 address string (e.g. "192.168.1.1" or "::1").

      Returns HSNetworkReachability | null

      A new HSNetworkReachability monitor, or null if the address is invalid.