我的IP地址 What is my ip address?


IP: 3.239.129.91

Html | Json


命令行获取外网IP

1、Linux

curl -L "https://tool.nbqykj.cn/network/ip/myip?type=html"

2、Python

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