# Is getting client port possible?

**URL:** <https://community.wowza.com/t/is-getting-client-port-possible/39126>\
**Category:** Wowza Streaming Engine\
**Created:** [February 18, 2014, 8:19pm UTC](https://community.wowza.com/t/is-getting-client-port-possible/39126 "2014-02-18T20:19:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wei\_Chung\_Chiu](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@Wei\_Chung\_Chiu](https://community.wowza.com/u/Wei_Chung_Chiu)\
**Post date:** [February 18, 2014, 8:19pm UTC](https://community.wowza.com/t/is-getting-client-port-possible/39126/1 "2014-02-18T20:19:10Z")

</div>

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.

```auto
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

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [February 20, 2014, 9:32am UTC](https://community.wowza.com/t/is-getting-client-port-possible/39126/2 "2014-02-20T09:32:07Z")

</div>

Please refer to ticket

```auto
#81809

```

.
