發佈日期:

Curl 對外IP、Wget 外部IP

Views: 0

視窗介面 (Graphic Mode) – 網頁瀏覽器查詢:

WINDOWS 文字模式下 – 利用 WGET.exe 程式指令

wget -qO- https://www.chungg.com/myip.php?onlyip

「Win10/11 亦可直接執行 curl 指令」

LINUX Text mode – wget指令 , curl指令

wget 範例:

wget -qO- https://www.chungg.com/myip.php?onlyip

wget + 寄 mail:

wget -qO- https://www.chungg.com/myip.php?onlyip | mail -s “信件主旨” chungg.com@gmail.com

curl 範例:

curl https://www.chungg.com/myip.php?onlyip

「適合用於 Shell Script、Python 或 Arduino 等物聯網裝置呼叫」。

顯示時給它斷行,這樣就不會接著命令列:

curl https://www.chungg.com/myip.php?onlyip ; echo

其它參考:

https://www.chungg.com/myip/

📍 遺珠推薦 (很多人錯過了這篇...):
OMV WEB + MySQL

免責聲明】 AI-Assisted Content | 部分資料引用自網路、AI的文筆,以及作者的整理。
如有侵權、雷同或標註錯誤,敬請來信明告知,還原始末釐前因。一經確認即撤稿,守護清名謝君勉。

請認明】🔗 chungg.com 才是官方唯一授權認證網域。

專業領航|知識技術無價  價值實踐|應用服務有價

本頁連結(530278):Curl 對外IP、Wget 外部IP