# WebRTC UDP vs TCP

**URL:** <https://community.wowza.com/t/webrtc-udp-vs-tcp/92166>\
**Category:** Wowza Streaming Engine\
**Created:** [October 19, 2020, 4:34pm UTC](https://community.wowza.com/t/webrtc-udp-vs-tcp/92166 "2020-10-19T16:34:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Delaney](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@James\_Delaney](https://community.wowza.com/u/James_Delaney)\
**Post date:** [October 19, 2020, 4:34pm UTC](https://community.wowza.com/t/webrtc-udp-vs-tcp/92166/1 "2020-10-19T16:34:59Z")

</div>

Hi

How does the WebRTC player in chrome decide whether to use UDP or TCP?

I did a few connections and watched with wireshark… the first one I made worked with UDP… then I stopped and reconnected and it used TCP.  
I have the firewall open for output from the server on all ports/protocols so dont think its that.

I would prefer for the client to use UDP if possible.

Thanks!  
James

---

<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 19, 2020, 6:08pm UTC](https://community.wowza.com/t/webrtc-udp-vs-tcp/92166/2 "2020-10-19T18:08:12Z")

</div>

If you have UDP selected as the first Ice candidate in your Engine webrtc settings, it will try that first. Do you have it configured that way?

 ![Screen Shot 2020-10-19 at 12.06.42 PM](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/eef85bf585d597549ec624f74ea8d1acdc173a7d.jpeg)  
  

You can have both enabled and adjust their preferred order using the **Priority** up and down arrows.
