logo       

Re: How you could get your public IP from Squeak: msg#00108

lang.smalltalk.squeak.beginners

Subject: Re: How you could get your public IP from Squeak




El 6/25/07 1:28 PM, "Matthew Fulmer" <tapplek@xxxxxxxxx> 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 !


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise