bbe7cf5 Bump deps, try reenabling arm64 CI build
~nickbp pushed to ~nickbp/iplookup git
Prints your public IP address to stdout by querying a specified STUN server.
Useful for finding your public IP when behind a NAT or firewall. Uses an open standard that's faster and arguably safer than querying some rando's "what is my ip" website.
Compile the crate:
$ cargo install iplookup
$ iplookup stun.l.google.com:19302
123.456.789.123
Or use the prebuilt amd64/arm64 docker image (example tag based on SHA):
$ docker run ghcr.io/nickbp/iplookup:TAG /iplookup stun.l.google.com:19302
123.456.789.123
$ git clone https://git.sr.ht/~nickbp/iplookup
$ cd iplookup
$ cargo build --release
$ ./target/release/iplookup stun.l.google.com:19302
123.456.789.123
Note: Building iplookup
requires Rust 1.39.0 or later.
DEBUG
environment variable is non-empty.This project is licensed under GPL 3 or any later version.