Checking for internet access

andu undo at cloud9.net
Mon Jan 14 01:42:01 EST 2002


Sarah Reichelt wrote:
> 
> 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.

I didn't follow this but you can do a host name to address translation
with any host name:
get hostnametoaddress("www.runrev.com")
if the result is empty then put it
else put the result

> 
> 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..
> >>>
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution

-- 
__________________________
 Regards, Andu



More information about the use-livecode mailing list