快速獲取外網 IP
現在很多雲主機都是使用 nat,沒有在機器上直接添加外網 IP 了。這時候要獲取到外網 IP 就需要一些服務的支持。
有哪些網站可以獲取到呢
IPIP.NETIPCN搜狐IP138Ping, mtr, dig and TCP port check from multiple locationsicanhazip.comComprehensive IP address data, IP geolocation API and database - IPinfo.ioIP Address Lookup / IPv4 / IPv6 - IP.SB方便通過命令查看的
curl https://ip.cn
curl http://pv.sohu.com/cityjson 2>> /dev/null | awk -F '"' '{print $4}'
curl icanhazip.com
curl ipv4.icanhazip.com
curl ipinfo.io/ip
curl ip.sb