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

Linux命令行獲取公網IP

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

Linux命令行獲取公網IP

本文收集了一些獲取公網 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命令行參數

2009-08-11 10:10:05

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

2022-10-14 19:30:29

Linux

2022-10-13 19:23:21

Linux命令行IP 地址

2009-12-24 14:51:39

Linux命令行

2009-12-09 09:22:07

linuxIPDNS

2010-09-01 14:23:54

Linux命令行開發

2009-12-09 09:25:52

Linux命令行svn命令

2009-08-11 10:20:52

linux命令行修改Ilinux命令行linux命令行參數

2009-12-23 14:14:09

Linux高級命令行

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命令行網速

2018-07-10 14:29:05

Linux命令行

2011-08-22 11:51:13

Linuxconfigure

2011-07-11 13:20:13

linuxuniq

2018-02-10 17:30:41

Linux命令

2009-08-11 09:58:22

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

51CTO技術棧公眾號

主站蜘蛛池模板: 成人福利影院 | 免费观看的黄色网址 | 久久久久久久一区二区三区 | 91福利在线观看 | 国产精品s色 | 久久99精品久久久久久 | 成人不卡| 狠狠操狠狠操 | 国产999精品久久久影片官网 | 久久99精品国产99久久6男男 | 中文一区二区 | 国产精品久久久久久妇女6080 | 91xxx在线观看 | 久草99 | 福利视频三区 | 亚洲欧美国产一区二区三区 | 在线观看亚洲专区 | 久久99蜜桃综合影院免费观看 | 日本午夜免费福利视频 | 天天色天天色 | 欧美精品一区三区 | 91啪亚洲精品 | 国产一二区视频 | 国产在线观看不卡一区二区三区 | 国产亚洲欧美日韩精品一区二区三区 | 精品国产一区二区三区久久影院 | 91精品国产综合久久久久久蜜臀 | 亚洲二区在线观看 | 午夜三区 | 久久视频免费观看 | 高清黄色毛片 | 欧美电影免费观看高清 | 国产精品一区二区久久精品爱微奶 | 黄色大片免费网站 | 日本黄色大片免费 | 北条麻妃一区二区三区在线视频 | 亚洲日韩第一页 | 亚洲精品1 | 国产综合av | 国产一区不卡 | 国产99久久精品一区二区300 |