* Thursday 11 June 2009, alle 12:14, Giorgio Zoppi scrive: > 2009/6/11 Raffaele Salmaso <raffaele.salm...@gmail.com>: > > castor91 wrote: > >> Ciao..ragazzi, se io volesssi scoprire il mio IP come posso fare?? > > >>> import urllib > > >>> ip = urllib.urlopen('http://whatismyip.org').read() > > >>> print ip > Ganzo...mica lo sapevo che esiteva un sito cosi.
E c'e' anche: http://www.myip.it/ http://www.ip-adress.com/ nonche' basta fare un "traceroute www.python.it" e al passo 2 della lista (se hai solo un router davanti a te, altrimenti al 3 e cosi' via) ti becchi l'IP pubblico. Ciao. -- | Francesco Benincasa - http://ciccio2000.altervista.org/ | EcoSCIENZE Societa' Cooperativa - http://www.ecoscienze.org/ | Ingegneria Senza Frontiere Bologna - http://isf.ing.unibo.it/ | Bologna Free Software Forum - http://www.bfsf.it/ **** Noise proves nothing. Often a hen who has merely laid an egg cackles as if she laid an asteroid. -- Mark Twain _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python