Basic Usage
Look Up Your Public IP
Section titled “Look Up Your Public IP”Run with no arguments to auto-detect and look up your own IP:
ipwhoamiFetching your public IP...Your IP: 203.0.113.42
[ipinfo] IP 203.0.113.42 City Sydney Region New South Wales Country AU Org AS12345 Example ISP Location -33.8688,151.2093 Timezone Australia/SydneyLook Up a Specific IP
Section titled “Look Up a Specific IP”Pass an IPv4 or IPv6 address as an argument:
ipwhoami 8.8.8.8ipwhoami 2001:4860:4860::8888Choose a Provider
Section titled “Choose a Provider”By default, ipwhoami uses ipinfo.io. Switch with -p:
# Use ipapi.coipwhoami -p ipapi 8.8.8.8
# Use ip-api.comipwhoami -p ip-api 8.8.8.8See Providers for details on each provider.
Combine Flags
Section titled “Combine Flags”Flags can be combined freely:
# Raw JSON from a specific provideripwhoami -r -p ipapi 1.1.1.1
# Compare all providers with raw outputipwhoami -c -r 8.8.8.8