# How to get the Ip Address in wowza media Server?

**URL:** https://community.wowza.com/t/how-to-get-the-ip-address-in-wowza-media-server/37358
**Category:** Wowza Streaming Engine
**Created:** [January 2, 2012, 4:46am UTC](https://community.wowza.com/t/how-to-get-the-ip-address-in-wowza-media-server/37358 "2012-01-02T04:46:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![na\_thiya](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@na\_thiya](https://community.wowza.com/u/na_thiya)
#### Post date: [January 2, 2012, 4:46am UTC](https://community.wowza.com/t/how-to-get-the-ip-address-in-wowza-media-server/37358/1 "2012-01-02T04:46:19Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Gustavo\_BM](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@Gustavo\_BM](https://community.wowza.com/u/Gustavo_BM)
#### Post date: [January 2, 2012, 10:06am UTC](https://community.wowza.com/t/how-to-get-the-ip-address-in-wowza-media-server/37358/2 "2012-01-02T10:06:01Z")

</div>

IClient -\> client.getIp()

---

<div class="post-metadata">

### Author: ![Gustavo\_BM](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@Gustavo\_BM](https://community.wowza.com/u/Gustavo_BM)
#### Post date: [January 2, 2012, 10:25am UTC](https://community.wowza.com/t/how-to-get-the-ip-address-in-wowza-media-server/37358/3 "2012-01-02T10:25:48Z")

</div>

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);

}

---

<div class="post-metadata">

### Author: ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)
#### Post date: [January 3, 2012, 11:10am UTC](https://community.wowza.com/t/how-to-get-the-ip-address-in-wowza-media-server/37358/4 "2012-01-03T11:10:57Z")

</div>

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

---

<div class="post-metadata">

### Author: ![na\_thiya](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@na\_thiya](https://community.wowza.com/u/na_thiya)
#### Post date: [January 2, 2012, 5:07am UTC](https://community.wowza.com/t/how-to-get-the-ip-address-in-wowza-media-server/37358/5 "2012-01-02T05:07:56Z")

</div>

thanks Iradium!how to apply in Flash ?

---

<div class="post-metadata">

### Author: ![na\_thiya](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@na\_thiya](https://community.wowza.com/u/na_thiya)
#### Post date: [January 4, 2012, 1:19am UTC](https://community.wowza.com/t/how-to-get-the-ip-address-in-wowza-media-server/37358/6 "2012-01-04T01:19:43Z")

</div>

Thanks Jason
