获取出口IP的几种方式

quick note

获取出口IP的几种方式

1. ipinfo.io

~ % curl ipinfo.io
{
  "ip": "198.179.137.192",
  "city": "Eagan",
  "region": "Minnesota",
  "country": "US",
  "loc": "44.8041,-93.1669",
  "org": "AS4583 West Publishing Corporation",
  "postal": "55123",
  "timezone": "America/Chicago",
  "readme": "https://ipinfo.io/missingauth"
}

2. ifconfig.me

 ~ % curl http://ifconfig.me/
198.179.137.192
```d