How to get the Ip Address in wowza media Server?

Hai

i developed Chat Application using wowza media Server with your Example of Chat Application.Now i want to get the user ip Address.is it possible,if so How i do this?kindly Guide me

IClient -> client.getIp()

something this:

public void getUserIP(IClient client, RequestFunction function, AMFDataList params) {

IClient clie = client.getAppInstance().getClientById(params.getString(PARAM1));

AMFDataObj tmp = new AMFDataObj();

tmp.put(“ip”, clie.getIp());

sendResult(client, params, tmp);

}

Hi

do it like this:

public void getUserIP(IClient client, RequestFunction function, AMFDataList params)

{

AMFDataObj tmp = new AMFDataObj();

tmp.put(“ip”, client.getIp());

sendResult(client, params, tmp);

}

There’s no need to get the client as you already have it.

Jason

thanks Iradium!how to apply in Flash ?

Thanks Jason