成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Linux命令行獲取公網(wǎng)IP

系統(tǒng) Linux
本文收集了一些獲取公網(wǎng) ip 的方法,也歡迎你評論分享。

Linux命令行獲取公網(wǎng)IP

本文收集了一些獲取公網(wǎng) ip 的方法,也歡迎你評論分享。

curl ipinfo.io

  1. $ curl ipinfo.io 
  2.   "ip""36.10.25.4"
  3.   "city""Hangzhou"
  4.   "region""Zhejiang"
  5.   "country""CN"
  6.   "loc""30.2936,120.1614"
  7.   "org""AS4134 CHINANET-BACKBONE" 
  8.  

curl httpbin.org/ip

  1. $ curl httpbin.org/ip 
  2.   "origin""36.10.25.4" 
  3.  

curl myip.ipip.net

  1. $ curl myip.ipip.net 

當前 IP:36.10.25.4 來自于:中國 北京 北京 鵬博士

curl ip.sb

  1. $ curl ip.sb 
  2. 36.10.25.4  

curl -s ifcfg.cn/echo |python -m json.tool

  1. $ curl -s ifcfg.cn/echo |python -m json.tool 
  2.  
  3.     "url""http://ifcfg.cn/echo"
  4.     "user_agent""curl/7.30.0"
  5.     "protocol""http"
  6.     "query_string"""
  7.     "ip""36.10.25.44"
  8.     "headers": { 
  9.         "CONNECTION""close"
  10.         "HOST""ifcfg.cn"
  11.         "ACCEPT""*/*"
  12.         "USER-AGENT""curl/7.30.0" 
  13.     }, 
  14.     "location""\u4e2d\u56fd \u5317\u4eac"
  15.     "method""GET"
  16.     "path""/echo"
  17.     "host""ifcfg.cn" 
  18.  

curl ifconfig.me

  1. $ curl ifconfig.me 
  2.  
  3. 36.10.25.4  

curl ifconfig.io

curl ifconfig.io

curl http://ip.taobao.com/service/getIpInfo2.php?ip=myip

  1. $ curl -s http://ip.taobao.com/service/getIpInfo2.php?ip=myip|python -m json.to 
  2. ol 
  3.     "code": 0, 
  4.     "data": { 
  5.         "country""\u4e2d\u56fd"
  6.         "country_id""CN"
  7.         "area""\u534e\u5317"
  8.         "area_id""100000"
  9.         "region""\u5317\u4eac\u5e02"
  10.         "region_id""110000"
  11.         "city""\u5317\u4eac\u5e02"
  12.         "city_id""110100"
  13.         "county"""
  14.         "county_id""-1"
  15.         "isp""\u9e4f\u535a\u58eb"
  16.         "isp_id""1000143"
  17.         "ip""36.10.25.44" 
  18.     } 
  19.  

ps:返回的 ip 我已修改過,奇怪的是這些方法返回 2 種地址,比如***個curl ipinfo.io 就不準

責任編輯:龐桂玉 來源: segmentfault
相關推薦

2022-03-04 14:32:01

命令行IP 地址Linux

2009-08-11 10:16:08

linux命令行修改Ired hat linlinux命令行參數(shù)

2009-08-11 10:10:05

Linux命令行修改ILinux命令行Linux命令

2022-10-14 19:30:29

Linux

2009-12-09 09:22:07

linuxIPDNS

2010-09-01 14:23:54

Linux命令行開發(fā)

2022-10-13 19:23:21

Linux命令行IP 地址

2009-12-24 14:51:39

Linux命令行

2009-12-23 14:14:09

Linux高級命令行

2009-12-09 09:25:52

Linux命令行svn命令

2011-07-11 13:20:13

linuxuniq

2018-02-10 17:30:41

Linux命令

2009-08-11 10:20:52

linux命令行修改Ilinux命令行linux命令行參數(shù)

2018-04-23 08:45:05

Linux命令行

2010-06-01 19:14:53

SVN命令行

2010-09-03 09:18:23

LinuxUNIX命令行

2014-01-24 09:09:32

Linux命令行網(wǎng)速

2018-07-10 14:29:05

Linux命令行

2011-08-22 11:51:13

Linuxconfigure

2009-08-11 09:58:22

Linux命令行Linux命令svn命令
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 日韩在线中文 | 久久综合av| 久久精品国产久精国产 | 99re视频精品 | 欧美成人二区 | 99精品欧美一区二区蜜桃免费 | 成av在线 | 国产精品一级 | 波多野结衣精品在线 | 久久精品久久精品 | 91亚洲视频在线 | 国产一区二区精品在线 | 国产男女猛烈无遮掩视频免费网站 | 三级黄色大片网站 | 国内成人免费视频 | 欧美一级毛片免费观看 | 激情一区 | 久久99深爱久久99精品 | 亚洲国产aⅴ成人精品无吗 欧美激情欧美激情在线五月 | 国产精品国产a | 视频一区在线 | 免费人成激情视频在线观看冫 | 成人久久 | 色天堂视频 | 在线看91| 国产一区二区不卡 | 欧美成人h版在线观看 | 1204国产成人精品视频 | 国产精品一区二区在线观看 | 丝袜 亚洲 另类 欧美 综合 | 国产免费一区二区三区 | 免费黄色a级毛片 | 日韩电影中文字幕在线观看 | 天天操天天天干 | 亚洲成av人片在线观看无码 | 中文字幕日韩欧美 | 黄网站在线播放 | 欧美一级在线免费观看 | 国产一级片免费在线观看 | 欧美 日韩 综合 | 亚洲国产激情 |