# Redirect RTMP connection to Another server when the reach connection limit

**URL:** <https://community.wowza.com/t/redirect-rtmp-connection-to-another-server-when-the-reach-connection-limit/33830>\
**Category:** Wowza Streaming Engine\
**Created:** [January 7, 2014, 2:19pm UTC](https://community.wowza.com/t/redirect-rtmp-connection-to-another-server-when-the-reach-connection-limit/33830 "2014-01-07T14:19:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceyhun\_ceyhun](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@ceyhun\_ceyhun](https://community.wowza.com/u/ceyhun_ceyhun)\
**Post date:** [January 7, 2014, 2:19pm UTC](https://community.wowza.com/t/redirect-rtmp-connection-to-another-server-when-the-reach-connection-limit/33830/1 "2014-01-07T14:19:57Z")

</div>

Hi

how can i redirect RTMP connections to another server when first server application reach the connection limit.

Connection limit has 5000.

thank you

---

<div class="post-metadata">

**Author:** ![ceyhun\_ceyhun](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@ceyhun\_ceyhun](https://community.wowza.com/u/ceyhun_ceyhun)\
**Post date:** [January 9, 2014, 6:37am UTC](https://community.wowza.com/t/redirect-rtmp-connection-to-another-server-when-the-reach-connection-limit/33830/2 "2014-01-09T06:37:32Z")

</div>

Up

---

<div class="post-metadata">

**Author:** ![ceyhun\_ceyhun](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@ceyhun\_ceyhun](https://community.wowza.com/u/ceyhun_ceyhun)\
**Post date:** [January 9, 2014, 6:56am UTC](https://community.wowza.com/t/redirect-rtmp-connection-to-another-server-when-the-reach-connection-limit/33830/3 "2014-01-09T06:56:21Z")

</div>

Hi Zoran

Thank you for your answer but i cant use LB module.

---

<div class="post-metadata">

**Author:** ![ceyhun\_ceyhun](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@ceyhun\_ceyhun](https://community.wowza.com/u/ceyhun_ceyhun)\
**Post date:** [January 10, 2014, 5:23am UTC](https://community.wowza.com/t/redirect-rtmp-connection-to-another-server-when-the-reach-connection-limit/33830/4 "2014-01-10T05:23:24Z")

</div>

hmm understand.

I cant resolve this redirect problem on server side ☹

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [January 9, 2014, 4:54pm UTC](https://community.wowza.com/t/redirect-rtmp-connection-to-another-server-when-the-reach-connection-limit/33830/5 "2014-01-09T16:54:56Z")

</div>

Hello,

Please take a look at this article as you might find it useful: [How to stop load balancer redirects when edge server limit has been reached (ModuleLoadBalancerEdgeLimitConnections)](https://www.wowza.com/docs/how-to-stop-load-balancer-redirects-when-the-edge-server-limit-has-been-reached-moduleloadbalanceredgelimitconnections%28ModuleLoadBalancerEdgeLimitConnections%29)

Zoran

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [January 10, 2014, 3:17pm UTC](https://community.wowza.com/t/redirect-rtmp-connection-to-another-server-when-the-reach-connection-limit/33830/6 "2014-01-10T15:17:32Z")

</div>

In this case you will have to do a client-side solution to interrogate the server and get the connection count, either by using an HTTPProvider or a RTMP netconnection.call.

Based on the number of connections from the answer, you should decide to send a play request to that particular server or not.

Zoran

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [February 6, 2014, 12:34pm UTC](https://community.wowza.com/t/redirect-rtmp-connection-to-another-server-when-the-reach-connection-limit/33830/7 "2014-02-06T12:34:15Z")

</div>

Hi,

You could do it using a custom Wowza module and use something like this: [How to redirect an HTTP or RTSP session through server-side code](https://www.wowza.com/docs/how-to-redirect-an-http-or-rtsp-session-through-server-side-code)

Zoran
