# Getting the number of connected session for HLS live streaming

**URL:** <https://community.wowza.com/t/getting-the-number-of-connected-session-for-hls-live-streaming/39759>\
**Category:** Wowza Streaming Engine\
**Created:** [January 25, 2013, 4:20pm UTC](https://community.wowza.com/t/getting-the-number-of-connected-session-for-hls-live-streaming/39759 "2013-01-25T16:20:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BK\_CHIA](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@BK\_CHIA](https://community.wowza.com/u/BK_CHIA)\
**Post date:** [January 25, 2013, 4:20pm UTC](https://community.wowza.com/t/getting-the-number-of-connected-session-for-hls-live-streaming/39759/1 "2013-01-25T16:20:36Z")

</div>

We are trying to get the number of viewers connecting to one of our HLS streams.

However, when we tried connecting multiple clients to the same live HLS stream to our Wowza server, we found the number of connections shown in the built-in HTTP provider always show as 1.

s360pmobile1

0

1

0

0

0

1

Is this normal for HLS streaming? Or is there any way to get the correct number of viewers for HLS streams?

Thanks.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [January 25, 2013, 1:16pm UTC](https://community.wowza.com/t/getting-the-number-of-connected-session-for-hls-live-streaming/39759/2 "2013-01-25T13:16:52Z")

</div>

Did you connect multiple clients concurrently? This is not a cumulative total, just what is current.

Otherwise, do you have a HLS stream on a public IP we can test and look at serverinfo? If so, send to support@wowza.com.

Include a link to this thread for reference. And include a username and password to look at serverinfo and connectioncounts on your server

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [January 28, 2013, 2:34pm UTC](https://community.wowza.com/t/getting-the-number-of-connected-session-for-hls-live-streaming/39759/3 "2013-01-28T14:34:52Z")

</div>

No, each client plays its own session. If you have five HLS clients streaming at the same time, you should see 5 at that time. But if you have five HLS clients streaming one at a time, you would only ever see 1 in this output.

Unless you have configured Wowza as an [HTTP origin](https://www.wowza.com/docs/how-to-configure-a-wowza-server-as-an-http-caching-origin)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [January 29, 2013, 1:47pm UTC](https://community.wowza.com/t/getting-the-number-of-connected-session-for-hls-live-streaming/39759/4 "2013-01-29T13:47:07Z")

</div>

Cool. You’re welcome. Thanks for the update.

Richard

---

<div class="post-metadata">

**Author:** ![BK\_CHIA](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@BK\_CHIA](https://community.wowza.com/u/BK_CHIA)\
**Post date:** [January 28, 2013, 11:25am UTC](https://community.wowza.com/t/getting-the-number-of-connected-session-for-hls-live-streaming/39759/5 "2013-01-28T11:25:51Z")

</div>

Hi Richard,

Do you mean if I have 5 clients access the same HLS live stream, it will be considered as 1 session ?

The wowza server is setup in our test lab and thus, can’t be accessed externally.

Thanks.

> Did you connect multiple clients concurrently? This is not a cumulative total, just what is current.
> 
> Otherwise, do you have a HLS stream on a public IP we can test and look at serverinfo? If so, send to support@wowza.com.
> 
> Include a link to this thread for reference. And include a username and password to look at serverinfo and connectioncounts on your server
> 
> Richard

---

<div class="post-metadata">

**Author:** ![BK\_CHIA](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@BK\_CHIA](https://community.wowza.com/u/BK_CHIA)\
**Post date:** [January 29, 2013, 10:29am UTC](https://community.wowza.com/t/getting-the-number-of-connected-session-for-hls-live-streaming/39759/6 "2013-01-29T10:29:53Z")

</div>

Thanks your help, Richard!

You are right. The server has been configured as a HTTP origin.

No wonder we can’t get the count right. 🙂

> No, each client plays its own session. If you have five HLS clients streaming at the same time, you should see 5 at that time. But if you have five HLS clients streaming one at a time, you would only ever see 1 in this output.
> 
> Unless you have configured Wowza as an [HTTP origin](https://www.wowza.com/docs/how-to-configure-a-wowza-server-as-an-http-caching-origin)
> 
> Richard
