Determine your WAN IP
Project description
Determine your WAN IP, using publicly available providers
Example usage
$ wanip -h
usage: wanip [-h] [-p PROVIDER] [-4] [-v]
Ask a provider for your ip with which you connect to it, then print it out
options:
-h, --help show this help message and exit
-p, --provider PROVIDER
the provider to contact, instead of pseudo-randomly auto-selecting one from a pre-built
internal list (default: None)
-4, --ipv4 force the usage of IPv4 (default: False)
-v, --verbose used once: show which provider will be contacted; used twice (or more often):
display contactable providers as well (i.e., the pre-built internal list) (default: 0)
Respect the netiquette when contacting the provider.
Installation
The project is on PyPI, so simply run
$ python -m pip install wanip
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wanip-2025.7.8.2.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wanip-2025.7.8.2.tar.gz.
File metadata
- Download URL: wanip-2025.7.8.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c54ea465733f7da7a693859d87b4801515d727fc9b069053c707884601317a97
|
|
| MD5 |
72160e34f7d41581660cf46581f9badb
|
|
| BLAKE2b-256 |
f8e20b852cce199851d5b8ec4da230e3a858227efe516979a084258cc060181b
|
File details
Details for the file wanip-2025.7.8.2-py3-none-any.whl.
File metadata
- Download URL: wanip-2025.7.8.2-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af3f5de405b3a21026d5070f7f74a0d913e1bff83d171b420d38fca3432db199
|
|
| MD5 |
6c833d3e890843192518e86038704dbf
|
|
| BLAKE2b-256 |
0a194aada89cbe116c975c5273d302e1da1506397d6792edee25f272a4fc6dce
|