935 B
935 B
MyIP
Zero-Latency Local (LAN) and Public (WAN) IP Address Resolver for the Gravitiny Ecosystem.
Author: Maeve Gallagher (maevecodes)
Features
- Instant Local Resolution: Uses zero-packet UDP kernel routing lookup to determine local IPv4 instantly.
- Fast Public Resolution: Multi-provider fallback (
ipify,icanhazip,ifconfig.me) with aggressive 2.0s timeouts. - Single-Line Output: Formatted cleanly for direct terminal reading and shell piping.
- JSON Mode:
-j/--jsonflag for scripting, monitoring, and CI/CD pipelines. - Verbose Network Diagnostic:
-v/--verbosemode shows host interfaces and ISP geolocation details.
Usage
# Default single-line output
myip
# Output only public IP
myip --public
# Output only local IP
myip --local
# JSON output
myip --json
# Verbose geolocation and interface report
myip --verbose
License
MIT License.