# Limiting rtp-live input connections

**URL:** <https://community.wowza.com/t/limiting-rtp-live-input-connections/48517>\
**Category:** Wowza Streaming Engine\
**Created:** [April 12, 2017, 6:45pm UTC](https://community.wowza.com/t/limiting-rtp-live-input-connections/48517 "2017-04-12T18:45:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Anderson](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@John\_Anderson](https://community.wowza.com/u/John_Anderson)\
**Post date:** [April 12, 2017, 6:45pm UTC](https://community.wowza.com/t/limiting-rtp-live-input-connections/48517/1 "2017-04-12T18:45:46Z")

</div>

I see in the docs how to limit the number of connections on a stream. But I need to limit the number of connections a server can make to the cameras that are started on demand with stream type “rtp-live”. Is that something that is readily available? If not is there is source for a plug-in that demonstrates how to do this?

John

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [May 28, 2017, 6:37am UTC](https://community.wowza.com/t/limiting-rtp-live-input-connections/48517/2 "2017-05-28T06:37:30Z")

</div>

Hello,

Looks like your question was addressed in a support ticket. Just to follow up on the solution from the ticket in case other users had a similar question:

_This should be possible by creating an application-level property object that keeps track of the started streams. You can increment the property during onPublish, and reduce it during onUnPublish._

_You can then add a listener during resolvePlayAlias that will check if a limit has been reached, and deny playback (return null)._

[_https://www.wowza.com/docs/how-to-use-the-imediastreamnamealiasprovider2-interface_](https://www.wowza.com/docs/how-to-use-the-imediastreamnamealiasprovider2-interface)

Regards,

Alex C
