Skip to main content

script to get the public IP (v4) of a PC

Project description

script to get the public IP (v4) of a PC

Tested against Windows 10 / Python 3.10 / Anaconda - should work on MacOS / Linux

pip install getpublicipv4

from getpublicipv4 import get_ip_of_this_pc
print(get_ip_of_this_pc())

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

getpublicipv4-0.10.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

getpublicipv4-0.10-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

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