Checking for internet access

Sarah Reichelt sarahr at genesearch.com.au
Mon Jan 14 01:05:01 EST 2002


I thought I had a name :-(

It may be relevant that I am behind a router which allocates me an IP
address like 192.168.1.x by DHCP. The router uses NAT to translate the
connections single IP address to different addresses on the network. I am
assuming that if I had a direct connection, hostName() would give me an
answer.

Thanks for trying - I hope someone can come up with an answer.

Sarah

> that probably means you have no "name".. obviously this works fine for me,
> but that doesn't help you ;-)  i'll keep looking into this for you, if
> anyone else has any ideas please share..
> 

>> This doesn't work for me. After a long delay (long enough to think the
>> computer has hung), it returns empty even though I am definitely connected
>> at the moment. hostName() by itself is the same.

>>> 
>>> hostNameToAddress(hostname())
>>> 
>>> if it's empty, there's no internet connection..
>>> 




More information about the use-livecode mailing list