How to find your public IP

Open https://checkip.amazonaws.com/.

Use the following to get it programmatically:

curl https://checkip.amazonaws.com