getmyip46 - Get My External IP Address
Retrieve the external ipv4 and/or ipv6 IP address
getmyip Command Usage and Options
Install with pip:
% pip install gitmyip46
% getmyip -h
usage: app.py [-h] [-v] [-4] [-6]
Report external IP address
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-4, --ipv4 Find public IPv4 address (default)
-6, --ipv6 Find public IPv6 address
getmyip gunville 2024 v1
Method of IP address detection:
By default getmyip automatically detects the public IP address by sending an HTTP request to ipv4.icanhazip.com for IPv4. and ipv4.icanhazip.com for IPv6.
You can optionally use a different site to autodetect the public ip by setting the environment variable IPAPIURL to that URL:
% IPAPIURL='http://api.ipify.org'
% getmyip
You can do the same for IPv6 using the IPV6APIURL environment variable.
Metadata
Release files for getmyip46 24.12.28
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| getmyip46-24.12.28.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| getmyip46-24.12.28-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / getmyip46-24.12.28.tar.gz
| Download URL | getmyip46-24.12.28.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a8f4f5ddaaf37edbcf58ff7d195fc26966535e987851ad7802775ec0f286388
|
|
BLAKE2b-256 checksum How to use checksums |
c2a298109796210925226f9b6f8c8d841e9670cacf6825daf455a1cc92847a83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / getmyip46-24.12.28-py3-none-any.whl
| Download URL | getmyip46-24.12.28-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53dbd132df94896cac1bedf75a6b3c8f025019672fcd17de9807b2ea759d9fb8
|
|
BLAKE2b-256 checksum How to use checksums |
3ccc6213ff2ea68591cae9d3605f71530c4a28aed7f444394a9e4cff0c9f4547
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|