得到外部ip

・1 分钟阅读

得到外部ip

curl ipinfo.io
返回有关外部IP地址的JSON格式的IP信息
示例输出
{
"ip":"1.54.83.255",
"hostname":"No Hostname",
"city":"Ho Chi Minh City",
"region":"Ho Chi Minh City",
"country":"VN",
"loc":"10.8142,106.6438",
"org":"AS18403 The Corporation for Financing & Promoting Technology"
}
Hujiuxiang profile image