It wont work , when you have a NATted enviorment or office with a proxy setup.
On 2/29/12, Niphlod <[email protected]> wrote:
> using google I found also this one....
>
> nice to play with
>
> print
> urllib2.urlopen('http://ifconfig.me/ip').read(<http://icanhazip.com/%27%29.read%28>
> )
> print
> urllib2.urlopen('http://ifconfig.me/all').read(<http://icanhazip.com/%27%29.read%28>
> )
> print
> urllib2.urlopen('http://ifconfig.me/all.xml').read(<http://icanhazip.com/%27%29.read%28>
> )
> print
> urllib2.urlopen('http://ifconfig.me/all.json').read(<http://icanhazip.com/%27%29.read%28>
> )
>