Server-Side Communication ActionScript > Client.ip

 

Client.ip

Availability

Flash Communication Server MX.

Usage

Client.ip

Description

Property (read-only); contains 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
	}
};