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.
$ 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.8.5.tar.gz
(4.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.8.5.tar.gz.
File metadata
- Download URL: wanip-2025.7.8.5.tar.gz
- Upload date:
- Size: 4.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 |
0ac1a038f764ce081ae893be3c98031f7d095479eaeb076159f3c69730ba1ff5
|
|
| MD5 |
8c113ebd612c0b838881e0c983f58b7c
|
|
| BLAKE2b-256 |
587c255c32c2142183e3389e4f09062ebfda6a94b9c5f99ccc647eae85000aad
|
File details
Details for the file wanip-2025.7.8.5-py3-none-any.whl.
File metadata
- Download URL: wanip-2025.7.8.5-py3-none-any.whl
- Upload date:
- Size: 5.3 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 |
4f7027cccd9cd150f520608507760bad7583d084fa1994958e4e28fecac055ad
|
|
| MD5 |
b90fddcc435aba493a039f19cc05351c
|
|
| BLAKE2b-256 |
c2924deca5fd9157bf102b995cdc8775f56331b2df531bc48af4c30d6cddbd90
|