# What is WebRTCDTLSServer.notifyHandshakeComplete?

**URL:** <https://community.wowza.com/t/what-is-webrtcdtlsserver-notifyhandshakecomplete/95536>\
**Category:** Wowza Developer Dojo\
**Tags:** webrtc\
**Created:** [October 21, 2022, 5:00am UTC](https://community.wowza.com/t/what-is-webrtcdtlsserver-notifyhandshakecomplete/95536 "2022-10-21T05:00:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuichiro\_Murata](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@Yuichiro\_Murata](https://community.wowza.com/u/Yuichiro_Murata)\
**Post date:** [October 21, 2022, 5:00am UTC](https://community.wowza.com/t/what-is-webrtcdtlsserver-notifyhandshakecomplete/95536/1 "2022-10-21T05:00:09Z")

</div>

Hi,

I am currently testing the playback webRTC in firefox and the playback is rarely successful like once in 10 times.  
So I check the Wowza access logs and find this may make the playback success or a failure.

:When it is successful

```
WebRTCDTLSServer.notifySecureRenegotiation: true
WebRTCDTLSServer.notifyHandshakeComplete for session:
WebRTCDTLSHandlerThread.accept finish for session:

```

:When it is a failure

```
WebRTCDTLSServer.notifySecureRenegotiation: true
WebSocketSession.destroy76997429: source:client status:-1 description:Unknown

```

So I think the playback is a failure because the WebRTCDTLS handshake is a failure.  
However, I can’t fix the problem by myself, so could you help me if possible?

I publish the stream from OBS and playback it in firefox.  
I configured the Wowza config as

```
<IceCandidateIpAddresses>
	[wse-host-public-ip],tcp,1935|[wse-host-public-ip],udp
</IceCandidateIpAddresses>

```

When I playback it in chrome, it is always successful.  
I don’t know why it is a failure when it comes to firefox.

---

<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:** [October 21, 2022, 3:16pm UTC](https://community.wowza.com/t/what-is-webrtcdtlsserver-notifyhandshakecomplete/95536/2 "2022-10-21T15:16:36Z")

</div>

I am going to ask you if you reviewed the ICE candidates for Firefox in our documentation:

 ![Screen Shot 2022-10-21 at 9.15.29 AM](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/5/55f651ff228e0c9c7139d77eba4ee6df33c2c53f.png)

  

It looks like you have UDP as an Ice candidate in addition to TCP? Firefox requires it. I would then check the ports.

**UDP For WebRTC over UDP, Wowza Streaming Engine uses a default port range of 6970 to 9999.** UDP ports are assigned dynamically, and each additional peer WebRTC connection increments the port number used. The starting port number is controlled by the **DatagramStartingPort** value specified in **[_install-dir_]/conf/Server.xml**.

**Take a peek at this doc to see if you have the right ports for UDP and TCP @Yuichiro_Murata**

> **[About WebRTC workflows in Wowza Streaming Engine](https://www.wowza.com/docs/webrtc-workflows-in-wowza-streaming-engine#webrtc-port-configuration5)**
>
> Describes the Wowza Streaming Engine implementation of WebRTC, including the supported codecs, workflows, and limitations.

\*\*If not it may be the version of FF you are using or some firewalls giving you an issue for UDP.

**troubleshooting tips:**

1. You can send in a ticket, but I would try and edit it to have UDP only as Ice candidate, get rid of TCP for a test only and see if you get it to work on FF.\*\*. That way you can just test FF only with UDP and rule things out from there.

2. Make sure you have Opus as the audio codec which WebRTC requires.

3. Turn on the NACK feature

Resources:

> **[Set up WebRTC streaming with Wowza Streaming Engine](https://www.wowza.com/docs/how-to-use-webrtc-with-wowza-streaming-engine)**
>
> Learn how to stream WebRTC with Wowza Streaming Engine.

---

<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:** [October 21, 2022, 3:21pm UTC](https://community.wowza.com/t/what-is-webrtcdtlsserver-notifyhandshakecomplete/95536/3 "2022-10-21T15:21:04Z")

</div>

In addition to the search bar above, you can always check our FAQ page as well for answers to your questions. You might be able to find your answer very quickly.

[https://support.wowza.com/hc/en-us/articles/9326418531867-How-do-I-configure-or-edit-my-ICE-candidates-for-WebRTC-](https://support.wowza.com/hc/en-us/articles/9326418531867-How-do-I-configure-or-edit-my-ICE-candidates-for-WebRTC-)

If not, please send us a support ticket and we are happy to help you troubleshoot.

---

<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:** [October 21, 2022, 3:26pm UTC](https://community.wowza.com/t/what-is-webrtcdtlsserver-notifyhandshakecomplete/95536/4 "2022-10-21T15:26:53Z")

</div>

Let me know how it goes for you. Thanks!

---

<div class="post-metadata">

**Author:** ![Yuichiro\_Murata](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@Yuichiro\_Murata](https://community.wowza.com/u/Yuichiro_Murata)\
**Post date:** [October 24, 2022, 9:05am UTC](https://community.wowza.com/t/what-is-webrtcdtlsserver-notifyhandshakecomplete/95536/5 "2022-10-24T09:05:39Z")

</div>

> [@Rose\_Power-Wowza\_Com](#):
>
> **troubleshooting tips:**
> 
> 1. You can send in a ticket, but I would try and edit it to have UDP only as Ice candidate, get rid of TCP for a test only and see if you get it to work on FF.\*\*. That way you can just test FF only with UDP and rule things out from there.
> 2. Make sure you have Opus as the audio codec which WebRTC requires.
> 3. Turn on the NACK feature

Thank you for your reply!  
I tried all tips you gave me but the result did not change.

wowza version 4.8.17+1  
firefox version 106.0.1

I edited it to have UDP only as an Ice candidate now.  
I can playback in chrome successfully and not in firefox.  
Plus, I confirmed nothing wrong with the firewall.

I’ve sent several tickets about other problems so far, but I am afraid I have not gotten good answers from Wowza support these days.  
So I asked differently at this time, and also I can get other people’s opinions in this way.

I appreciate your kind support.

---

<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:** [October 26, 2022, 4:20pm UTC](https://community.wowza.com/t/what-is-webrtcdtlsserver-notifyhandshakecomplete/95536/6 "2022-10-26T16:20:55Z")

</div>

Let me review your tickets and I appreciate you letting me know it’s still not working.

---

<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:** [October 26, 2022, 4:52pm UTC](https://community.wowza.com/t/what-is-webrtcdtlsserver-notifyhandshakecomplete/95536/7 "2022-10-26T16:52:43Z")

</div>

I’d send a support ticket anyways since we always have new engineers joining Wowza. They’re all very webrtc knowledgable when it comes to the FF webrtc library issues.

I suspect they’ll want to take a look if there’s a TURN setup here that we don’t support or some port forwarding issues.

- At this time, full session traversal utilities for NAT (STUN) negotiation aren’t supported. Currently, Wowza Streaming Engine only supports traversal of symmetric NATs. A single STUN transport configuration (TCP or UDP) must be used. TURN servers are not supported at this time.
