原文:
https://www.cnblogs.com/qq1069284034/p/9227625.html
linux服務器查看公網IP信息的方法
curl icanhazip.com curl ifconfig.me curl curlmyip.com curl ip.appspot.com curl ipinfo.io/ip curl ipecho.net/plain curl www.trackip.net/i
curl realip.uhaozu.com
最近在解決網絡問題時,需要查看本機的出口公網IP信息,所以在網絡上搜索和請求運維達人,獲得如下兩個方法:
curl ifconfig.me
在linux系統中輸入上述的命令,可以查看到本機連接的公網信息;如果該命令無效,可以使用下面一個命令,也同樣可以獲得對應的信息
curl cip.cc