How to get external IPv4 address using curl
Run the following command to print your external IP address:
example.sh
curl -fsSL https://api4.ipify.org
Example output:
example.txt
80.187.71.195
Check 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