#!/bin/bash

# http://askubuntu.com/questions/95910/command-for-determining-my-public-ip

# Works too but very slow (a lot more features available):
# curl ifconfig.me

wget -qO- http://ipecho.net/plain; echo

