Getting your Public IP from the Terminal

Public IPv4 addresses are assigned by NIC and belongs to CIDR blocks that are unique to the entire internet.

In this little post I show many ways to find your public IP address form the Linux terminal.

Using Curl

You can simply curl it from IP websites:

$  curl ifconfig.me …
more ...