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.26.0.tar.gz
(5.7 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.26.0.tar.gz.
File metadata
- Download URL: wanip-2025.7.26.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58bd295077000f55b3e3b6fc25b69c88904e88e843b1177f8003b0ade9a40885
|
|
| MD5 |
ea473db1626907cb35358a3df45ad91b
|
|
| BLAKE2b-256 |
862a802d0fa63038b9dcafdf7143ecd562905b36115ad5d11d30af6476a8db08
|
File details
Details for the file wanip-2025.7.26.0-py3-none-any.whl.
File metadata
- Download URL: wanip-2025.7.26.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 |
7210eb7a8d1852dd64f840726991d097ff9d00bfed60489eff5180697f735acb
|
|
| MD5 |
d0b4452fe55fa0a95d7ed0ad2165e3bd
|
|
| BLAKE2b-256 |
c127c0261c7e7a08aa0e21951e9f67bfc7c625c1739e2017630576c98b08341f
|