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.

0 IPv6 address resolved
1 IPv6 unavailable or not supported on this network

The machine’s public IPv6 address, printed to stdout

Terminal window
gip6

Dependencies: curl

Classification: network