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

Your hostname is :ec2-50-16-79-246.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/