如何知道目前對外的 IP 是哪個?

不知道該丟哪裡的好文先往這塞吧!
日後如果文章多了,再來想辦法分類好了^^"
回覆文章
頭像
chengpercy
Site Admin
文章: 1809
註冊時間: 週日 6月 26, 2005 8:55 pm
來自: Taipei

如何知道目前對外的 IP 是哪個?

文章 chengpercy »

參考網頁:https://askubuntu.com/questions/95910/c ... -public-ip

如何知道目前對外的 IP 是哪個?
不過前提是你有辦法可以連到這幾個 URL = =

curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

curl ipinfo.io/ip

curl ipecho.net/plain

curl ipecho.net/plain ; echo
回覆文章