查看 IP
命令行快速查看本地网络与代理出口的 IP 信息。
可快速查看当前**本地网络(宽带)和代理(梯子)**的 IP 信息。
🏠 本地网络(宽带)
curl cip.cc示例输出:
station :: /app » curl cip.cc
IP : 156.000.00.00
地址 : 中国 香港
运营商 : Cloudinnovation
数据二 : 中国香港新界 | LARUS
数据三 : 中国香港
URL : http://www.cip.cc/156.000.00.00🚀 代理网络(梯子)
curl ip.sb通常用于查看你的代理(VPN / 代理服务器)出口 IP。返回内容简洁,适合在脚本中调用。
🌍 查看详细国家和位置信息
curl ipinfo.io示例输出:
{
"ip": "156.000.00.00",
"city": "Tung Chung",
"region": "Islands",
"country": "HK",
"loc": "00.0000,00.0000",
"org": "AS63888 DXXXXXXX XXXXXXX",
"postal": "999077",
"timezone": "Asia/Hong_Kong",
"readme": "https://ipinfo.io/missingauth"
}💡 实用技巧
仅显示 IP:
curl -s ipinfo.io | jq -r .ip或者:
curl -s ip.sb | grep -Eo '([0-9]+\.){3}[0-9]+'对比本地与代理 IP:
echo "Local:" && curl -s cip.cc
echo "\nProxy:" && curl -s ip.sb