Flash Media Server Developer Documentation

Client.ip

clientObject.ip

Read-only; A string containing the IP address of the client.

Availability

Flash Communication Server 1

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.
    }
};