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)
-6, --ipv6 force the usage of IPv6 (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.4.tar.gz
(4.5 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.4.tar.gz.
File metadata
- Download URL: wanip-2025.7.8.4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed48e6da52d990e2ff569168705d351d308aa783ddebf33dd9037207d25cbda
|
|
| MD5 |
5ee5d4ac02e95d4a0998ecf9dfda32a6
|
|
| BLAKE2b-256 |
79a751ec7d54a855a790a4805bf9a328761a3d2b76b723a958738c6e540140eb
|
File details
Details for the file wanip-2025.7.8.4-py3-none-any.whl.
File metadata
- Download URL: wanip-2025.7.8.4-py3-none-any.whl
- Upload date:
- Size: 5.1 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 |
1c66a43689d83608aabf0d4199461fecda27f83b778999a57d25b39fe5f76cd0
|
|
| MD5 |
27765cfbef9aa788c7c152567bae21c7
|
|
| BLAKE2b-256 |
3b008142ee0e9c7684d0d998ea6b024434f3d6ad588943909e63b091019ef0a7
|