IPADDRESS function

Synopsis
This function returns the IP address of the current platform, as a string. If used with a project running in emulation mode, it returns an empty string.
Variations
IPADDRESS()
Returns the IP address of the first network interface, listed in Network Interfaces page of the Platform Configuration dialog. This is best used with platforms containing only one network interface (such as, a Matrox Iris GTR or a PC with a single network card).
Parameters
Returns
Returned types: String.
Examples
1.

The following example returns the IP address of the first network interface.

IPADDRESS()
IPADDRESS(NetworkInterfaceName)
Returns the IP address of the specified network interface, listed in the Network Interfaces page of the Platform Configuration dialog. This is best used with platforms containing multiple network interfaces (such as, a Matrox 4Sight GPm or a PC with multiple network cards).
Parameters
NetworkInterfaceName

The name of the network interface for which to return the IP address. This information is listed in the Network Interfaces page of the Platform Configuration dialog.

Supported types: String.
Returns
Returned types: String.
Examples
1.

The following example returns the IP address of the specified network interface (Network1).

IPADDRESS("Network1")