Validate IPv4 or IPv6 address syntax
is-ip-safeValidate IPv4 or IPv6 without lookup. Use to check whether a supplied string is structurally an IP address. Do not use it to geolocate a host or test network reachability. Local syntax validation only; performs no DNS or network request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IPv4 or IPv6 literal address such as 192.0.2.1 or 2001:db8::1. |