curl ipinfo.io
[root@host-10-166-224-8 ~]# curl ipinfo.io
{
"ip": "223.252.218.163",
"hostname": "No Hostname",
"city": "Guangzhou",
"region": "Guangdong",
"country": "CN",
"loc": "23.1167,113.2500",
"org": "AS45062 Guangzhou NetEase Computer System Co., Ltd."
}