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.

Returns:

0 IPv6 address printed
1 IPv6 unavailable or not supported on this network
Examples
gip6