Determining LAN IP
monte at sweattechnologies.com
Thu Aug 26 18:26:03 CDT 2010
That will always return 127.0.0.1 which if entered into the iPhone would make the iPhone want to sync with itself. I need a local network IP.
On 27/08/2010, at 8:54 AM, Mark Schonewille wrote:
> Hi Monte,
> work for you?
> Kind regards,
> Mark Schonewille
> Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com
> Op 27 aug. 2010 om 00:50 heeft Monte Goulding <monte at sweattechnologies.com> het volgende geschreven:
>> 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?
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode