David Janik-Jones wrote:
> 
> Assumption: I have a single small screen with one button and one text field.
> The computer is connected to the Internet.
> 
> I click the button and I'd like to have the machine's current IP address
> determined/read and put into the text field.
> 
> Is this (simple) thing possible? What code is needed to read the computer's
> IP address?
> 
> David (with many thanks to all those who offer advice and help to us all!)
> 

put line 1 of hostnametoaddress("yahoo.com")& ":80" into temp
open socket to temp
put hostaddress(temp) #your machine ip address
close socket temp

Notice that you must open a connection to a remote address first in
order to get yours.

> -----------------------------
> 
> David Janik-Jones | RKD, Inc.
> 
> 853 Alma Street | Palo Alto, CA 94301
> 650.324.1355 x13 | Fax 650.324.2968
> [EMAIL PROTECTED] | www.rkdinc.co

Andu

Reply via email to