There are times you need to find what your public IP Address especially when doing firewall work. There are environments where a browser is not accessible so you need to use another method. Below is what I use:
nslookup myip.opendns.com resolver1.opendns.com