Determining LAN IP

Monte Goulding monte at
Thu Aug 26 19:20:59 EDT 2010

Unfortunately not because that will return a public IP. Nothing on the WAN should be able to determine the LAN IP.



On 27/08/2010, at 8:57 AM, Jim Ault wrote:

> You could just ping
> On Aug 26, 2010, at 3:50 PM, Monte Goulding wrote:
>> Hi Everyone
>> To determine the domain name of the computer Rev is running on we use hostName() and to turn that into an IP we use hostNameToAddress(hostName()). If you are behind a router this will return your LAN IP however if your computer is using a modem it will return a public IP. I need a reliable LAN IP so I can ask the user to enter it into their iPhone to connect to my sync server. Should I just be parsing ifconfig and ipconfig and forget about hostName() or what?
> Jim Ault
> Las Vegas
> _______________________________________________
> 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