Simply get your public ip address from command line
You want to know your external ip in with command line ? just type :
natjohan$ curl ifconfig.me
XX.XX.XX.XX
If curl is not on your system, you can use wget
natjohan$ wget -qO- ifconfig.me/ip
XX.XX.XX ...