Il metodo più semplice consiste nell'interrogare con una banalissima richiesta HTTP l'URL http://www.whatismyip.org/.