Top  | Previous | Next

system.net.getIpAddress

Description

Returns the IP address of the computer the client is running on, as it appears to the client. See also: system.net.getExternalIpAddress().

Syntax

system.net.getIpAddress()

Parameters

none

Returns

String - Returns the IP address of the local machine, as it sees it.

Scope

All

Examples

Put this script on a navigation button to link dedicated machines to specific screens.

 

ip = sytem.net.getIpAddress()

#check which line this client is tied to

if ip == "10.1.10.5":

   system.nav.swapTo("Line Detail", {"line":1})

elif ip == "10.1.10.6":

   system.nav.swapTo("Line Detail", {"line":2})

else:

   system.nav.swapTo("Line Overview")

 

See also:

system.net.getExternalIpAddress

system.net.getHostName