Linux查看外网ip


 description

通过curl命令查看外网ip地址

 command

curl http://ip-api.com/json/

 result

{
    "status": "success",
    "country": "China",
    "countryCode": "CN",
    "region": "SN",
    "regionName": "Shaanxi",
    "city": "Xi'an",
    "zip": "",
    "lat": 4.2635,
    "lon": 8.9246,
    "timezone": "Asia/Shanghai",
    "isp": "Chinanet",
    "org": "Chinanet SN",
    "as": "AS4134 CHINANET-BACKBONE",
    "query": "1.15.77.201"
}

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.