Linux查看本機IP:curl cip.cc


絕大多數情況下計算機都是通過NET去上連接互聯網的,不管是公司的內部數據中心或是家庭網絡大都如此,如果我們想獲取公網的出口ip改如何操作嗯?下面提供了幾種方法,它們返回結果的速度不太有快有慢,測試curl cip.cc這個命令算是比較好用。

curl http://members.3322.org/dyndns/getip
curl icanhazip.com
curl ident.me
curl ifconfig.me
curl ifconfig.co
curl ip.6655.com/ip.aspx
curl ip.cip.cc
curl ipecho.net/plain
curl myip.dnsomatic.com
curl whatismyip.akamai.com

更多用法訪問

wget -qO - ifconfig.co

返回IP和地區

curl ip.6655.com/ip.aspx?area=1
curl cip.cc

windos可以通過瀏覽器獲取,當然cmd窗口命令獲取也沒問題

URL : http://www.cip.cc

瀏覽器訪問 :https://ip138.com/

瀏覽器訪問 :http://icanhazip.com/

相關:https://zhuanlan.zhihu.com/p/138151725


免責聲明!

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



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