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").
Creates a reachability monitor for a specific IP address. Returns
nullifaddressis not a valid IPv4 or IPv6 address literal. Under the hood this monitors general system connectivity (the same asreachabilityInternet()), becauseNWPathMonitordoes not support per-address targeting.