Skip to content

Instantly share code, notes, and snippets.

@alexandrevicenzi
Last active January 2, 2016 14:39
Show Gist options
  • Save alexandrevicenzi/8318318 to your computer and use it in GitHub Desktop.
Save alexandrevicenzi/8318318 to your computer and use it in GitHub Desktop.
Find your external IP using Pyhton
#!/usr/bin/env python
# -*- encoding: UTF-8 -*-
import urllib
# Telize is a JSON IP and GeoIP REST API
url = 'http://www.telize.com/ip'
u = urllib.urlopen(url)
data = u.read()
print data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment