Read , lines 1 to 30
What's new in v0.2.1
New feature: --local
Show the local machine's IPv4 and IPv6 addresses without any network calls.
myip --local
myip --local --json
- Enumerates all active, non-loopback network interfaces
- Reports all non-link-local unicast IPv4 addresses and IPv6 addresses
- Prints
(none)for a family if no addresses are found --jsonoutputs{ "ipv4": [...], "ipv6": [...] }- Cannot be combined with
--detail,--weather,--unit, or--no-cache