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-161-210-75.compute-1.amazonaws.com
Country: United States
Country Code: US
City: Ashburn
Latitude: 39.0437
Longitude: -77.4875

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