Client.ip

Availability

Flash Communication Server MX 1.0.

Usage

clientObject.ip

Description

Property (read-only); a string containing the IP address of the Flash client.

Example

The following example uses the Client.ip property to verify whether a new client has a specific IP address. The result determines which block of code runs.

application.onConnect = function(newClient, name){
    if (newClient.ip == "127.0.0.1"){
        // Insert code here.
    } else {
        // Insert code here.
    }
};