GetIpAddress

<< Click to Display Table of Contents >>

Navigation:  Quick3270 functions and statements >

GetIpAddress

Description

This function returns the IP address of the computer running Quick3270.

Syntax

String = GetIpAddress(index)

 

Parameter

Part

Type

Description

index

Integer

Required. As a Pc can have several network adapters, it can have several IP addresses.
So the GetIpAddress function uses an index, the first address is on index = 0.

It’s possible to get all the IP addresses by incrementing the index until a zero length string is returned. This version returns only IPv4 addresses.