如何使用 curl 获取外部 IPv4 地址
运行以下命令以打印你的外部 IP 地址:
get_external_ipv4.sh
curl -fsSL https://api4.ipify.org示例输出:
output.txt
80.187.71.195Check out similar posts by category:
Networking
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow