Getting IP Address of Machine that is Currently Running the Stack

Luis luis at anachreon.co.uk
Wed Oct 25 10:59:28 EDT 2006



Mark Schonewille wrote:
> There are several ways to get your IP address, depending on which 
> address you need. One possibility is this one-liner:"
> 
>   put char 1 to -9 of (last word of line ¬
>   lineoffset("<title>",url "http://www.whatismyip.com") ¬
>   of url "http://www.whatismyip.com")
> 

This will get you the external IP, which may not be the IP address of 
the workstation but rather the IP address of the router.

Cheers,

Luis.



More information about the Use-livecode mailing list