Table of Contents

TTMSFNCCustomCloudIPLocalization.GetIP Method

Starts an asynchronous lookup for the supplied IP address. The result is reported through the OnGetIP event.

API unit family: TMSFNCCloudIPLocalization Declaring type: TTMSFNCCustomCloudIPLocalization

Overloads

Overload 1

Starts an asynchronous lookup for the supplied IP address. The result is reported through the OnGetIP event.

procedure GetIP(AIP: string = ''); overload; virtual;

Remarks

Requires a valid API key; raises an exception when no key is set.

Parameters

Name Description
AIP The IP address to resolve. When empty, the public IP address of the caller is resolved.

Overload 2

Starts an asynchronous lookup that refreshes the supplied IP entry in place. The result is reported through the OnGetIP event.

procedure GetIP(AIP: TTMSFNCCloudIPLocalizationIP); overload; virtual;

Remarks

Requires a valid API key; raises an exception when no key is set.

Parameters

Name Description
AIP The existing IP entry to resolve and update.