Skip to content

gip6

Usage
gip6

Fetches and prints the machine’s public IPv6 address using icanhazip.com. Prints an error message if IPv6 is unavailable on the current network.

Exit Status:

0 IPv6 address resolved
1 IPv6 unavailable or not supported on this network
Returns:
The machine's public IPv6 address, printed to stdout
Examples
gip6