【笔记】命令行查看公网IP

前言

命令行查看公网IP学习笔记

只查看公网IP

1
2
3
4
5
curl ip.sb
curl ifconfig.io
curl members.3322.org/dyndns/getip
curl icanhazip.com
curl www.trackip.net/ip

查看其他详细信息

1
2
3
4
5
6
7
8
9
10
11
12
curl ipinfo.io

{
"ip": "",
"city": "",
"region": "",
"country": "",
"loc": "",
"org": "",
"timezone": "",
"readme": ""
}
1
2
3
4
5
6
7
8
curl cip.cc

IP :
地址 :
运营商 :
数据二 :
数据三 :
URL :
1
2
3
curl myip.ipip.net

当前 IP: 来自于:
1
2
3
4
5
curl httpbin.org/ip

{
"origin": ""
}

完成

参考文献

CSDN——shaoguang_cn