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 / --json flag for scripting, monitoring, and CI/CD pipelines.
  • Verbose Network Diagnostic: -v / --verbose mode 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.

S
Description
Zero-latency local and public IP resolver with single-line stdout and JSON formatting.
Readme
38 KiB
Languages
Python 100%