Skip to content

Instantly share code, notes, and snippets.

@marc-hanheide
Created March 10, 2024 17:44
Show Gist options
  • Save marc-hanheide/e02cb9f1a3a7bfc4161868b977b394c6 to your computer and use it in GitHub Desktop.
Save marc-hanheide/e02cb9f1a3a7bfc4161868b977b394c6 to your computer and use it in GitHub Desktop.
Use Python to get your external apparent IP address
#!/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