ip-report
Cross-platform CLI that emails you this machine's IP addresses — on boot, on a schedule, or on demand.
Built for headless boxes on DHCP networks: home servers, Raspberry Pis, remote dev machines whose address you can never remember. One small binary, no daemon, no cloud service.
Features
- All interfaces, IPv4 + IPv6 — the report lists every NIC's addresses plus the default-route egress IP, not just one
- Cross-platform — Linux, macOS, and Windows, with user-level autostart (no root/admin needed)
- No daemon —
ip-report rundoes its job and exits; scheduling is delegated to the OS (systemd user timer, LaunchAgent, Windows scheduled task) - Secrets stay local — SMTP credentials live in a TOML config under your user config directory, never in the repo
- Zero-config dev runs —
./main.pyruns from source with no install
Install
Requires Python 3.10+.
pip install ip-report
# or, isolated:
pipx install ip-report
Quick start
-
Create the config (a fully commented template) and fill in your SMTP credentials:
ip-report initPlatform Config path Linux ~/.config/ip-report/config.tomlmacOS ~/Library/Application Support/ip-report/config.tomlWindows %APPDATA%\ip-report\config.toml -
Send a one-shot report:
ip-report run -
Install boot reporting (generates the OS-native autostart, user level):
ip-report installTo also report periodically, pass an interval in minutes:
ip-report install --interval 60
To also report when the network recovers or the IP changes (checked once a minute, sends only on change):
ip-report install --watch
If the network is not up yet when run fires (right after boot), nothing is
sent; the autostart retries every 30s and reports once the network is up
(Linux/macOS). run accepts --wait SECONDS (default 60) for how long to
wait first, and --on-change to report only on recovery/IP change.
Other commands: ip-report init (write a commented config template), ip-report uninstall (remove the autostart), ip-report status (is it installed?), and ip-report local (print the same report content to stdout — host, OS, time, uptime, egress and every interface including VPN tunnels — without sending email).
Development
git clone https://github.com/Junbo-Zheng/ip-report
cd ip-report
pip install -e ".[dev]" # dev tools (pytest, ruff)
pytest # runs against src/ directly, no install needed
./main.py --help # run the CLI from source
Lint and format:
ruff check --fix src tests main.py
ruff format src tests main.py
License
This project is licensed under the Apache License, Version 2.0. See LICENSE or https://www.apache.org/licenses/LICENSE-2.0 for the full text.
Metadata
Release files for ip-report 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ip_report-0.0.5.tar.gz | 24.7 kB | Without provenance | Details for ip_report-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ip_report-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for ip_report-0.0.5-py3-none-any.whl |
Total release size: 45.7 kB
Release files / ip_report-0.0.5.tar.gz
| Download URL | ip_report-0.0.5.tar.gz |
|---|---|
| Size | 24.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2ace509d526bd6ae75db18e9b46275f8651de3fc1bc2847f88069a79c66fbff
|
|
BLAKE2b-256 checksum How to use checksums |
4b149979a2d43ea84c2122f6c0573fa84c9dfa3550037f3bf5279a27cfa4e2b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / ip_report-0.0.5-py3-none-any.whl
| Download URL | ip_report-0.0.5-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
678afdf6065ddb4aedb5a425819d7880d87f434fe425074d51c3c814d34f35b3
|
|
BLAKE2b-256 checksum How to use checksums |
279688d793e7a0fc1eb847715556611c8cccb0c23e377efa6154730679a9dc43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Security for ip-report 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.