# Getting Streamers IP address (onPublish)

**URL:** <https://community.wowza.com/t/getting-streamers-ip-address-onpublish/40154>\
**Category:** Wowza Streaming Engine\
**Created:** [August 20, 2015, 5:11am UTC](https://community.wowza.com/t/getting-streamers-ip-address-onpublish/40154 "2015-08-20T05:11:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dogan\_dogan](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@dogan\_dogan](https://community.wowza.com/u/dogan_dogan)\
**Post date:** [August 20, 2015, 5:11am UTC](https://community.wowza.com/t/getting-streamers-ip-address-onpublish/40154/1 "2015-08-20T05:11:38Z")

</div>

Dear Wowza Support - Team & Wowza Community,

Is there a way to get the streamers ip address?

I use following method:

public void onPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend) {

}

thank you for your time and help

---

<div class="post-metadata">

**Author:** ![Diogo\_Moraes](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@Diogo\_Moraes](https://community.wowza.com/u/Diogo_Moraes)\
**Post date:** [August 20, 2015, 10:17am UTC](https://community.wowza.com/t/getting-streamers-ip-address-onpublish/40154/2 "2015-08-20T10:17:06Z")

</div>

stream.getClient().getIp() should get it nicely.

---

<div class="post-metadata">

**Author:** ![dogan\_dogan](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@dogan\_dogan](https://community.wowza.com/u/dogan_dogan)\
**Post date:** [August 20, 2015, 6:22am UTC](https://community.wowza.com/t/getting-streamers-ip-address-onpublish/40154/3 "2015-08-20T06:22:51Z")

</div>

thank you, this seems to be work. But in the lan network i only get the lan ip.

---

<div class="post-metadata">

**Author:** ![Diogo\_Moraes](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@Diogo\_Moraes](https://community.wowza.com/u/Diogo_Moraes)\
**Post date:** [August 20, 2015, 11:59am UTC](https://community.wowza.com/t/getting-streamers-ip-address-onpublish/40154/4 "2015-08-20T11:59:35Z")

</div>

Yeah, it works like that here too. Inside LAN I only get LAN IP, but when accessing from outside, I get the correct “outside” IP, but I have no idea how to get the “outside” IP when inside LAN.
