我的IP地址 What is my ip address?


IP: 68.66.226.92

Html | Json


号令行獲取外網IP

1、Linux

curl -L "/network/ip/myip?type=html"

2、Python

resp = requests.get(url="/network/ip/myip?type=html",timeout=60)
print(resp.text)
或
resp = requests.get(url="/network/ip/myip?type=json",timeout=60)
print(resp.json()['ip'])

xxfseo.com