Wowza Community

Is getting client port possible?

Hi,

Due to some customers’ requirement, I need to know the exact port which a specific client uses to connect to wowza.

For example, a mobile device uses 80 port for a http connection, but after some NAT/PAT transition in 3G network it could be changed to another different port .

Is there an api that I can get this shifted port? or I should extract it from request header?

Thanks in advance.

update:

I tried httpSession.getHTTPHeaderMap() and the header info it showed did not include any fields related to client port.

protocol=HTTP/1.1
connection=keep-alive
host=xxx.xxx.xxx.xxx:1935
accept-language=zh-TW, en-US
accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
context=vod/_definst_/sample.mp4/playlist.m3u8
method=GET
user-agent=Mozilla/5.0 (Linux; U; Android 4.0.1; zh-tw; Galaxy Nexus Build/ITL41F) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
referer=""
accept-encoding=gzip,deflate
uri=GET /vod/_definst_/sample.mp4/playlist.m3u8 HTTP/1.1
accept-charset=utf-8, iso-8859-1, utf-16, *;q=0.7"

weichung

Please refer to ticket

#81809

.