[Newbies] How you could get your public IP from Squeak

Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Mon Jun 25 17:30:45 UTC 2007




El 6/25/07 1:28 PM, "Matthew Fulmer" <tapplek at gmail.com> escribió:

> Here is a variation that uses the public service dyndns:
> 
> getPublicIP
> | stream |
>     stream := HTTPSocket httpGet: 'http://checkip.dyndns.com'.
>     stream upToAll: 'IP Address: '.
>     ^ stream upTo: $<
> 
> That page is tiny, and so is pretty quick to download and parse.

Very nice Matthew !




More information about the Beginners mailing list