If you want to find your external ip address from a Unix-Linux server without GUI. You can use the following command.
curl http://www.iptools.eu/cli.php
SSL Certificate
Your IP address is : 54.224.108.189
Details for ip address 54.224.108.189

Your hostname is :ec2-54-224-108-189.compute-1.amazonaws.com
Country: United States
Country Code: US
City: Ashburn
Latitude: 39.0481
Longitude: -77.4728


This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/