Flash Media Server |
|||
| Server-Side ActionScript Language Reference > Server-Side ActionScript Language Reference > Client class > Client.ip | |||
Flash Communication Server MX 1.0.
clientObject.ip
Property (read-only); a string containing the IP address of the Flash client.
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.
}
};