How can I get the public IP using python2.7? Not private IP.
I like the requests package with http://ip.42.pl/raw
import requests requests.get('http://ip.42.pl/raw').text