Skip to content

gip

Usage
gip

Fetches and prints both the public IPv4 and IPv6 addresses using icanhazip.com. Shows “Not detected” for any address that times out.

0 Network failures print “Not detected” instead of failing
1 curl is not installed
2 Unexpected argument (takes none)
Terminal window
gip

Dependencies: curl

Classification: network