How do i check for an internet connection?

Andre Garzia soapdog at
Tue Dec 6 21:09:45 EST 2005


that's a little gem... nice, never thought of that, I did things like  
get URL "" and trapped for errors,  
of course this code breaks if my domain goes offline, but that code  
of yours, that holds!


On Dec 7, 2005, at 12:06 AM, Kurt Kaufman wrote:

> I don't remember who to thank for this one, which I modified only  
> slightly:
> on testForConnection
> put "" into testSocket
>     open datagram socket to testSocket
>     put hostAddress(testSocket) into theIPAddress
>     close socket testSocket
>     if theIPAddress is "" then
>       --it's the local machine address, so not connected
>       --may insert connection routine here
> end  testForConnection
> -Kurt
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:

More information about the Use-livecode mailing list