43 lines
935 B
Markdown
43 lines
935 B
Markdown
# 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
|
|
|
|
```bash
|
|
# 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.
|