Skip to main content

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


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.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wanip-2025.7.8.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file wanip-2025.7.8.3.tar.gz.

File metadata

  • Download URL: wanip-2025.7.8.3.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

Hashes for wanip-2025.7.8.3.tar.gz
Algorithm Hash digest
SHA256 6c4cd832f17a3f08a278886c265823551c48e3658960219a097348f572c4129e
MD5 9e42bb08806b7b6bf1338ad2f59adb73
BLAKE2b-256 694e8d8ba04913c7187be1879a3dd0f79ca92f199a30bc2b6b21f9a9ae3cc7bb

See more details on using hashes here.

File details

Details for the file wanip-2025.7.8.3-py3-none-any.whl.

File metadata

  • Download URL: wanip-2025.7.8.3-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

Hashes for wanip-2025.7.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 63f1e5f02b875e7a6f64155ca5b25f580c69b1bc5dc2e06f9a517ce677822852
MD5 44b063e869553df66633368b056ded9c
BLAKE2b-256 461fec7f1526014f1e456704c3b89bcc3ad3778a010fb96258f771bc2f43aabd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page