Determining LAN IP
Andre Garzia
andre at andregarzia.com
Thu Aug 26 19:30:01 EDT 2010
On Thu, Aug 26, 2010 at 8:29 PM, Jim Ault <jimaultwins at yahoo.com> wrote:
>
> On Aug 26, 2010, at 3:54 PM, Mark Schonewille wrote:
>
> Hi Monte,
>>
>> Does
>>
>> hostnametoaddress("localhost")
>>
>
> I get "127.0.0.1" which is my cpu, which is what I would expect.
>
Jim,
that is loopback it is useless for anything trying to connect to your
machine...
>
>
>> work for you?
>>
>>
>>
>> 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?
>>>
>>>
> Jim Ault
> Las Vegas
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
--
http://www.andregarzia.com All We Do Is Code.
More information about the use-livecode
mailing list