Returns the list of IP addresses (Internet Protocol) for a computer.
// Displays the IP addresses of local computer
<Result> = NetListIPAddress([<Computer name>] [, <Options>])
<Result>: Character string
List of IP addresses separated by CR characters (Carriage Return).
<Computer name>: Optional character string
Name of computer for which the IP addresses will be listed. If this parameter is not specified, the list of IP addresses found on the local computer is returned.
You cannot retrieve the addresses of a computer other than the one onto which the application is run.
<Options>: Optional Integer constant (or combination of constants)
Type of address to retrieve:
|IPv4||List of IPv4. addresses|
|IPv6||List of IPv6. addresses|
If this parameter is not specified, the list of IPv4 and IPv6 addresses is returned (combination of IPv6 + IPv4 constants).
The following codes are equivalent:
n is int = 0
WHILE NetIPAddress(n) <> ""
n = n + 1
Business / UI classification: Business Logic