However, what to do if you are inside a Terminal, with just an internal IP?
Just try:
curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g'
orwget http://ipecho.net/plain -O - -q ; echo
Then you can get your real IP.
Coding for Fun
:)
passionate hackers in Hong Kong. Agile, Ruby On Rails, Scala and Pen Test
curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g'
orwget http://ipecho.net/plain -O - -q ; echo