Wowza Community

Unable to publish or view WebRTC stream on AWS EC2 Linux BYOL

I am attempting to setup a RTMP -> WebRTC transcoder as per this guide. I’m using the Wowza Streaming Engine (Linyx BYOL) instance with the default server configuration.

However, when I attempt to publish a test WebRTC stream, I get a error notification ‘Publish failed. Unable to connect.’ From the logs, I see the following warning:

Bind failed, try again ([any]:443): Address already in use

I moved forward with the tutorial, and was able to push an RTMP feed and view the playback with HLS. However, when I try and playback with WebRTC, I get the following error:

WebSocket connection to 'wss://<hostname>' failed: 
wsConnect @ WowzaPeerConnectionPlay.js:111

Do you have any insights on what might be breaking?

Looking into it further, it seems like one possible reason port 443 isn’t working might be that my SSL configuration is incorrect. I have the streamlock certificate, and have it saved to:


In the Virtual Host Setup section, I have the keystore path setup as:


However, I remain unable to access the Engine Manager or the HLS stream using https.

I’m still having this issue with WebRTC streaming, and am possibly having related issues with LL-HLS. I tried following this guide for LL-HLS

New AWS linux ec2 instance, new license key, new streamlock file. Streamlock keystore file was uploaded to the ec2 instance, and moved to the WowzaStreamingEngine/conf directory
I get to the point where I can push RTMP, and playback with HLS over insecure HTTP. However, I am unable to playback the LL-HLS url using theoplayer and the streamlock url:


Am I missing any steps in the setup process? Is the preconfigured Wowza Streaming Engine (Linux BYOL) still recommended? Are there additional steps that need to be performed for EC2?

The “Bind failed” error indicates that another application/service is using port 443, on your server. Fix the port conflict at the OS level (decide which service uses which port). You may also change Wowza Streaming Engine from port 443 to any other port (i.e. 8443) by modifying VHost.xml or in Wowza Streaming Engine Manager via the Server > VHost Configuration pages.