Created
March 10, 2024 17:44
-
-
Save marc-hanheide/e02cb9f1a3a7bfc4161868b977b394c6 to your computer and use it in GitHub Desktop.
Use Python to get your external apparent IP address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
python -c "import requests; print(str(requests.get('https://icanhazip.com').text))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment