linux - how can i find my public facing ip from python program not proxy -


i want find public ip adress python program.

so far site

http://www.whatismyip.com/ , http://whatismyip.org/

which gives ip without proxy rest give proxy.

now .org site using image , first 1 writes ip across many span elements can't grab urllib.

any other idea or site can ip

i use http://httpbin.org/:

import requests  ip = requests.get('http://httpbin.org/ip').json()['origin'] 

Comments