linux 下查看外网ip

1. curl ipinfo.io

~/codes/qt_codes/qt-5.4.1-build$ curl ipinfo.io
{
  "ip": "114.241.210.22",
  "hostname": "No Hostname",
  "city": "Beijing",
  "region": "Beijing Shi",
  "country": "CN",
  "loc": "39.9289,116.3883",
  "org": "AS4808 CNCGROUP IP network China169 Beijing Province Network"
}

2. curl http://members.3322.org/dyndns/getip

~/codes/qt_codes/qt-5.4.1-build$ curl http://members.3322.org/dyndns/getip
114.241.210.22

上一篇:iOS tableView刷新


下一篇:Linux下查看机器公网IP