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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -