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 :
Details for ip address

Your hostname is :ec2-54-80-26-116.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/