命令行返回公网IP地址
curl ifconfig.me 直接返回ip地址
[root@VM_10_10_centos ~]# curl myip.ipip.net
当前 IP:193.112.-.- 来自于:中国 广东 广州 电信/联通/移动
[root@VM_10_10_centos ~]# curl ifconfig.me
193.112.-.-
[root@VM_10_10_centos ~]# curl ip.cn
当前 IP:193.112.-.- 来自:广东省广州市 腾讯
[root@VM_10_10_centos ~]# curl myip.ipip.net
当前 IP:193.112.-.- 来自于:中国 广东 广州 电信/联通/移动
[root@VM_10_10_centos ~]# curl cip.cc
IP : 193.112.-.-
地址 : 中国 广东 广州
运营商 : 电信
数据二 : 英国
URL : http://www.cip.cc/193.112.-.-
[root@VM_10_10_centos ~]#curl ipinfo.io
{
"ip": "193.112.-.- ",
"city": "Issy-les-moulineaux",
"region": "Ile-de-France",
"country": "FR",
"loc": "48.8210,2.2772",
"postal": "92130",
"org": "AS45090 Shenzhen Tencent Computer Systems Company Limited"
}