This small but fine Python Snippet requests the public IP adress (supports IPv4 and IPv6) at myip.is and outputs the result.
It might be useful to get your public IP adress on the command line, or even to check whether your internet connection is working.
USAGE :
python ipfetch.py
License
MIT LicenseFollow ipfetch-python
Other Useful Business Software
Gemini 3 and 200+ AI Models on One Platform
Build, govern, and optimize agents and models with Gemini Enterprise Agent Platform.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of ipfetch-python!