獲取本機出口IP方法


 

Windows 瀏覽器常用方式訪問:

  1、http://www.ip138.com/

 

  

  2、http://tool.chinaz.com/

 

  3、在百度搜索框內輸入 ip  會自動識別出來當前的出口IP

 

 

Linux 命令行接口獲取方式:

  1、https://ipinfo.io/

[root@test ~]# curl ipinfo.io
{
  "ip": "xxx.18.xx.1xx",
  "city": "",
  "region": "Guangdong",
  "country": "CN",
  "loc": "2xx.xx,1xx.xx0",
  "org": "AS134774 CHINANET Guangdong province Shenzhen MAN network"
}

 

  2、https://ip.cn/

[root@test ~]# curl ip.cn
當前 IP:xx.18.96.1xx 來自:廣東省深圳市 電信

  

  3、http://www.cip.cc/

[root@test ~]# curl cip.cc
IP    : xxx.18.xx.1x4
地址    : 中國  廣東  深圳
運營商    : 電信

數據二    : 廣東省深圳市 | 電信

數據三    : 中國廣東省深圳市 | 電信

URL    : http://www.cip.cc/xx8.18.xx.1xx

 

  4、http://myip.ipip.net/

[root@test ~]# curl myip.ipip.net
當前 IP:xx.18.xx.x4x  來自於:中國 廣東 深圳  電信

 

  5、http://ifconfig.me/

[root@test ~]# curl ifconfig.me
2xx.18.xx.x4

 

  6、http://members.3322.org/dyndns/getip

[root@test ~]# curl members.3322.org/dyndns/getip
xx.18.xx.x4

 

 

以上Linux方式獲取ip出口地址部分通過瀏覽器訪問可以獲得更詳細的信息。

 

本文參考:https://blog.csdn.net/orangleliu/article/details/51994513

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM