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
Go From AI Idea to AI App Fast
Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of ipfetch-python!