# How to get Wowza Player to view a stream with the Load Balancer Add-On?

**URL:** <https://community.wowza.com/t/how-to-get-wowza-player-to-view-a-stream-with-the-load-balancer-add-on/50755>\
**Category:** Wowza Player\
**Created:** [February 13, 2018, 11:13pm UTC](https://community.wowza.com/t/how-to-get-wowza-player-to-view-a-stream-with-the-load-balancer-add-on/50755 "2018-02-13T23:13:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacob\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@Jacob\_Gonzalez](https://community.wowza.com/u/Jacob_Gonzalez)\
**Post date:** [February 13, 2018, 11:13pm UTC](https://community.wowza.com/t/how-to-get-wowza-player-to-view-a-stream-with-the-load-balancer-add-on/50755/1 "2018-02-13T23:13:31Z")

</div>

I can get the Load Balancer Add-On to work but I cannot get the Wowza Player to stream it properly. I can get the Player to stream the original feed from the Origin server but not from the Edge server.

My setup:

- Origin Server running Wowza 4.7.4 on Linux Mint 18.1
- Edge Server running Wowza 4.7.4 on Ubuntu 16.04.3

I’ve pushed to the Origin with Adobe FMLE and could see that stream.

I’ve pushed to the Edge with Adobe FMLE and could see that stream.

I use the standard live app and I’ve turned off source and playback authentication.

I put the com.wowza.wms.plugin.loadbalancer.listeners.ServerListener Server Listener in the Server.xml for both instances.

The Origin server Load Balancer setup (Server.xml):

- loadbalanceType: Server, Client
- loadbalanceServerListenIP: [Origin IP]
- loadbalanceKey: [random 16-byte key]
- loadbalanceServerDecisionOrder: Connection
- loadbalanceClientConnectionEnable: on
- loadbalanceClientConnectionLimit: 2

The Edge server Load Balancer setup (Server.xml):

- loadbalanceType: Client
- loadbalanceServerListenIP: [Origin IP]
- loadbalanceKey: [same key as above]
- loadbalanceServerDecisionOrder: Connection
- loadbalanceClientConnectionEnable: on
- loadbalanceClientConnectionLimit: 4

When I hit http://[Origin IP]:1935/loadbalanceinfo page with a browser I see

- Origin server with 2 connections max
- Edge server with 4 connections max

I have success hitting the source stream on the Origin server with the Wowza Player with the URL

```auto
http://[Origin IP]:1935/live/test.mp4

```

but that only hits the Origin server. No player will pull from the Edge server. It’ll even run over the maximum; I can get 4/2 connections.

If I use the redirect URL with Wowza Player I can’t watch it at all

```auto
http://[Origin IP]:1935/redirect/live/test.mp4?type=m3u8

```

If I run the command

```auto
wget --max-redirect 0 --server-response http://[Origin IP]:1935/redirect/live/test.mp4?type=m3u8

```

I will get the HTTP 302 redirect response with a valid Location HTTP header.

On page 31 of the Load Balancing Add-On PDF there’s some extra Javascript to add to the Wowza Player’s embed code but that doesn’t seem to help either.

I added these to the WowzaPlayer.create() call but with no effect:

- “loadBalancerFilter”: “redirect”,
- “scheme”: “http://”,
- “loadBalancerHost”: “[Origin IP]:1935”,
- “loadBalancerAppRequired”: “live”,
- “loadBalancerAssetRequired”: “mp4:sample.mp4”

I feel like I’m missing one simple step to get this all to work.

---

<div class="post-metadata">

**Author:** ![jimmy\_keffer](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jimmy\_keffer](https://community.wowza.com/u/jimmy_keffer)\
**Post date:** [January 13, 2020, 2:44pm UTC](https://community.wowza.com/t/how-to-get-wowza-player-to-view-a-stream-with-the-load-balancer-add-on/50755/2 "2020-01-13T14:44:46Z")

</div>

same problem for me also

---

<div class="post-metadata">

**Author:** ![jimmy\_keffer](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jimmy\_keffer](https://community.wowza.com/u/jimmy_keffer)\
**Post date:** [January 13, 2020, 2:46pm UTC](https://community.wowza.com/t/how-to-get-wowza-player-to-view-a-stream-with-the-load-balancer-add-on/50755/3 "2020-01-13T14:46:11Z")

</div>

please help

---

<div class="post-metadata">

**Author:** ![Amara\_Graham](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/amara_graham/32/381_2.png) [@Amara\_Graham](https://community.wowza.com/u/Amara_Graham)\
**Post date:** [January 13, 2020, 4:28pm UTC](https://community.wowza.com/t/how-to-get-wowza-player-to-view-a-stream-with-the-load-balancer-add-on/50755/4 "2020-01-13T16:28:05Z")

</div>

What version of Wowza Stream Engine are you running?

---

<div class="post-metadata">

**Author:** ![jimmy\_keffer](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jimmy\_keffer](https://community.wowza.com/u/jimmy_keffer)\
**Post date:** [January 13, 2020, 5:24pm UTC](https://community.wowza.com/t/how-to-get-wowza-player-to-view-a-stream-with-the-load-balancer-add-on/50755/5 "2020-01-13T17:24:55Z")

</div>

4.78 load blancer 4.5

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [January 13, 2020, 8:32pm UTC](https://community.wowza.com/t/how-to-get-wowza-player-to-view-a-stream-with-the-load-balancer-add-on/50755/6 "2020-01-13T20:32:27Z")

</div>

Hi @jimmy keffer, there could be a variety of things going on here including the fact you’re using 4.7.4 and there have been several updates to origin-edge workflow. ( We are now on Engine 4.7.8)

**1.** But, let’s start here: do you have an SSL secured port in place?

The live stream repeater will fail to connect to a non-SSL-protected destination port on the origin server. It will repeatedly try to connect.

**2.** Our LoadBalancing system works like this:

The playback requests would need to come to the Load Balancer (LB), and then the Wowza LB would distribute the connections between the load-balancing servers (or clients in an LB workflow)

I’ll check with support, but I am also suspicious that your playback url still has origin in it and not edge:

Example: Adobe RTMP: rtmp://[wowza-edge-address]:1935/liveedge/myStream

[https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater](https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater)

**3.** Are you getting an error message you can share? In the meantime, let me confirm with tech support how this works with load balancer and I’ll post very soon. Thanks.

---

<div class="post-metadata">

**Author:** ![jimmy\_keffer](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jimmy\_keffer](https://community.wowza.com/u/jimmy_keffer)\
**Post date:** [January 13, 2020, 10:36pm UTC](https://community.wowza.com/t/how-to-get-wowza-player-to-view-a-stream-with-the-load-balancer-add-on/50755/7 "2020-01-13T22:36:30Z")

</div>

i opened a support case with more info thanks

jimmt

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [January 13, 2020, 10:40pm UTC](https://community.wowza.com/t/how-to-get-wowza-player-to-view-a-stream-with-the-load-balancer-add-on/50755/8 "2020-01-13T22:40:14Z")

</div>

Great. I’ll take a look to see what they determine. Thanks for letting me know.
