How to get external IPv4 address using wget
Run the following command to print your external IP address:
wget -qO- https://api4.ipify.org
Example output:
80.187.71.195
Run the following command to print your external IP address:
wget -qO- https://api4.ipify.org
80.187.71.195