CLI - Determine Public IP Address

Sometimes it is useful to find out what your public (internet) ip address is from the CLI (because you dont have a GUI), such as to determine whether your virtual machine is correctly routing traffic through your networks VPN. To do this, simply run the following command:

wget -O - -q
Please note that the single - on its own is not a typo.

No comments:

Post a Comment