Getting Streamers IP address (onPublish)

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

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

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

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.