Rolf Kocherhans wrote:
> 
> I tried to find a handler which checks Internet connectivity on all
> platforms with a registered name and without one.
> 
> I tried this:
> 
> on mouseUp
>    put hostNameToAddress(hostname()) into varIP
>    if varIP = "" then answer error "Not connected"
>    else
>     answer information "Connected" & return & "Your IP is : " & varIP
>    end if
> end mouseUp

on mouseup
get hostnametoaddress("www.yahoo.com")
if the result is empty then put "connected"
else put "not connected"
end mouseup

> 
> But this does not work if a Computer has only a TCP/IP number and no
> name entry.
> 
> How can I check if the computer has an Internet connectivity or not.
> 
> I tried the hostAddress() function but did not get it to work, I know
> it must be my fault !
> 
> Is this for you Andu ?
> 
> Cheers
> Rolf
> 
> Archives: http://www.mail-archive.com/[email protected]/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
Andu

Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to