# http://IP:8086/connectioncounts Question

**URL:** https://community.wowza.com/t/http-ip-8086-connectioncounts-question/33716
**Category:** Wowza Streaming Engine
**Tags:** server-administration
**Created:** [February 10, 2012, 11:37pm UTC](https://community.wowza.com/t/http-ip-8086-connectioncounts-question/33716 "2012-02-10T23:37:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![eduardo\_espinoza\_sua](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@eduardo\_espinoza\_sua](https://community.wowza.com/u/eduardo_espinoza_sua)
#### Post date: [February 10, 2012, 11:37pm UTC](https://community.wowza.com/t/http-ip-8086-connectioncounts-question/33716/1 "2012-02-10T23:37:25Z")

</div>

Hello

at [http://IP:8086/connectioncounts](http://IP:8086/connectioncounts)

I have good information about my shoutcast-relay streamings

an example

radio.stream

969

2

0

0

0

971

If I refresh page, stats change , so looks like if “live” stats

Now my question is:

at [http://IP:8086/connectioncounts](http://IP:8086/connectioncounts) shows all my ( an example ) radio.stream

radio2.stream

radio3.stream

Stats

Exist a way that each radio.stream has a separate stats page or area?

Also exist way to have a dayly stats record for my radios.stream ( s ) ?

SOme of my customer requesting me way to see how many listenner has at a its radio

for example I can see how many connectios exist at radio.stream

radio.stream

969

2

0

0

0

971

But I wont give [http://IP:8086/connectioncounts](http://IP:8086/connectioncounts) acess to each of my customer

At least wont give my admin.password

Thanks in advance for your ideas and help

Ed

---

<div class="post-metadata">

### Author: ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)
#### Post date: [February 10, 2012, 9:02pm UTC](https://community.wowza.com/t/http-ip-8086-connectioncounts-question/33716/2 "2012-02-10T21:02:12Z")

</div>

The connectioncounts HTTPProvider is pretty basic. The source is here: [https://www.wowza.com/docs/how-to-get-connection-counts-for-server-applications-application-instances-and-streams-with-an-http-provider](https://www.wowza.com/docs/how-to-get-connection-counts-for-server-applications-application-instances-and-streams-with-an-http-provider)

You’ll have to edit it in the Wowza IDE to add authentication. There are many ways to do it, but first you’ll want to download the IDE and figure out how to compile a module.

There are also several stats packages mentioned in the “Showcase” forum here. Search for Sawmill, Casterstats, Awstats.

---

<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: [February 15, 2012, 1:29pm UTC](https://community.wowza.com/t/http-ip-8086-connectioncounts-question/33716/3 "2012-02-15T13:29:48Z")

</div>

Ed,

You will have to modify the source, which is here:

[https://www.wowza.com/docs/how-to-get-connection-counts-for-server-applications-application-instances-and-streams-with-an-http-provider](https://www.wowza.com/docs/how-to-get-connection-counts-for-server-applications-application-instances-and-streams-with-an-http-provider)

Also take a look at this example to see how to parse querystring or post variables:

[https://www.wowza.com/docs/how-to-parse-post-or-get-variables-in-an-http-provider](https://www.wowza.com/docs/how-to-parse-post-or-get-variables-in-an-http-provider)

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: [May 15, 2013, 11:45am UTC](https://community.wowza.com/t/http-ip-8086-connectioncounts-question/33716/4 "2013-05-15T11:45:05Z")

</div>

There a few examples on this forum. Here is one:

> [@Display current listeners using PHP](http://community.wowza.com/t/-/34372):
>
> Hi, Here is a simple PHP code to retrieve number of listeners on your stream or connected user. [PHP] \<?php $xml\_data=file\_get\_contents("http://YOURSERVERIP:8086/connectioncounts"); $doc = new DOMDocument(); $doc-\>loadXML($xml\_data); $wms = $doc-\>getElementsByTagName('WowzaMediaServer'); $currentlistener = $wms-\>item(0)-\>getElementsByTagName("ConnectionsCurrent")-\>item(0)-\>nodeValue; $listenerhits = $wms-\>item(0)-\>getElementsByTagName("ConnectionsTotal")-\>item(0)-\>nodeValue; echo "Curr…

Richard

---

<div class="post-metadata">

### Author: ![eduardo\_espinoza\_sua](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@eduardo\_espinoza\_sua](https://community.wowza.com/u/eduardo_espinoza_sua)
#### Post date: [February 11, 2012, 8:36am UTC](https://community.wowza.com/t/http-ip-8086-connectioncounts-question/33716/5 "2012-02-11T08:36:49Z")

</div>

Thanks for your reply

To be honest

THis “Basic information” is enough

problem is that all streams information are on there , so, I can look for a particular stream like: radio.stream. but if a customer want to see that?

I cant give access login details to a customer

Thanks why I was asking about any idea how to for example

[http://ip:8086/connectioncounts/radio1.stream](http://ip:8086/connectioncounts/radio1.stream)

and that this customer see this “basisc” stats

Regards

ed

---

<div class="post-metadata">

### Author: ![a\_a1](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@a\_a1](https://community.wowza.com/u/a_a1)
#### Post date: [May 14, 2013, 9:19pm UTC](https://community.wowza.com/t/http-ip-8086-connectioncounts-question/33716/6 "2013-05-14T21:19:32Z")

</div>

> Ed,
> 
> You will have to modify the source, which is here:
> 
> [https://www.wowza.com/docs/how-to-get-connection-counts-for-server-applications-application-instances-and-streams-with-an-http-provider](https://www.wowza.com/docs/how-to-get-connection-counts-for-server-applications-application-instances-and-streams-with-an-http-provider)
> 
> Also take a look at this example to see how to parse querystring or post variables:
> 
> [Create an HTTP provider](https://www.wowza.com/docs/how-to-parse-post-or-get-variables-in-an-http-provider)
> 
> Richard

Can I get xml file from [http://ip:8086/connectioncounts?flat](http://ip:8086/connectioncounts?flat) to php for pot graph??

Thank.
