码迷,mamicode.com
首页 > 系统相关 > 详细

linux 下查看外网ip

时间:2015-11-06 00:04:19      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:

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




linux 下查看外网ip

标签:

原文地址:http://www.cnblogs.com/zhangjiankun/p/4941020.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!