Curlで取得できる。URLは他にもいろいろある。
$ curl http://inet-ip.info 203.0.113.0
URL忘れちゃうから gip でエイリアス設定した
gip
# ~/.bashrc alias gip='curl http://inet-ip.info'