Determine your WAN IP
Project description
Determine your WAN IP, using publicly available providers
Example usage
$ wanip -h
usage: wanip [-h] [-p PROVIDER] [-4 | -6] [-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.
$ wanip -4
80.167.65.60
$ wanip -6vv
https://api.ipify.org
https://checkip.amazonaws.com
https://eth0.me/
https://icanhazip.com
https://ident.me
https://ifconfig.co
https://ifconfig.me/ip
https://ip.me
https://ipapi.co/ip
https://ipecho.net/plain
https://ipinfo.io/ip
https://iprs.fly.dev
https://l2.io/ip
https://my.ip.fi
https://wgetip.com
https://whatismyip.akamai.com
https://www.trackip.net/ip
Trying https://ifconfig.me/ip
2a01:599:b44:be52:9f91:3767:2b2f:cd93
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.14.0.tar.gz
(5.6 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.14.0.tar.gz.
File metadata
- Download URL: wanip-2025.7.14.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1851016e433ee2cbdd4ce6cf1a6a449d5b109538a54c4cb278b3d4bc9c61d059
|
|
| MD5 |
b1c087f34c4ec3eda7a64b9db3ec83dc
|
|
| BLAKE2b-256 |
4beda50ff3ce8fe5e692d4e77d4c6485ea68d9521792989a5fe260e7a2d48be9
|
File details
Details for the file wanip-2025.7.14.0-py3-none-any.whl.
File metadata
- Download URL: wanip-2025.7.14.0-py3-none-any.whl
- Upload date:
- Size: 5.5 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 |
14661477c6e0d18cbbc2eab4beda19802ca40a47914ef7ddd31e53d140b0ee28
|
|
| MD5 |
5424ecbda95717662ab8bcc9f28400f9
|
|
| BLAKE2b-256 |
bed549388a96aff3dc1978b14c0769962014b8c4648de60cfd5781376a1bcb09
|