ask-sheldon.com
Get your public IP via shell | Bravehartk2's Blog
This article shows you how to get your public IP via shell. It also mentions alternative -not so cool :-D - ways (websites for example).