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.87.114.118
Details for ip address 54.87.114.118

Your hostname is :ec2-54-87-114-118.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/