# WebRTC Not Working

**URL:** <https://forum.magicleap.cloud/t/webrtc-not-working/3562>\
**Category:** Unity Development\
**Tags:** webrtc\
**Created:** [May 22, 2024, 10:58pm UTC](https://forum.magicleap.cloud/t/webrtc-not-working/3562 "2024-05-22T22:58:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abbas.khawaja](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@abbas.khawaja](https://forum.magicleap.cloud/u/abbas.khawaja)\
**Post date:** [May 22, 2024, 10:58pm UTC](https://forum.magicleap.cloud/t/webrtc-not-working/3562/1 "2024-05-22T22:58:01Z")

</div>

**Unity Editor version** : 2022.2.0  
**ML2 OS version** : 1.5  
**Unity SDK version** : 1.12  
**Host OS** : (Windows/MacOS) Windows 11

**Error messages from logs** (syntax-highlighting is supported via Markdown):  
We are trying to run the WebRTC example scene however, the connection isn't able to be made. On the Magic Leap 2, the connection is made but on the PC end, we are unable to connect. We are using the same IP address as the IP address inputted into the WebRTC program on the Magic Leap 2.

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [May 22, 2024, 11:40pm UTC](https://forum.magicleap.cloud/t/webrtc-not-working/3562/2 "2024-05-22T23:40:53Z")

</div>

Hi @abbas.khawaja,

I'm sorry to hear that you are experiencing this. This is a known issue for us and we are currently working towards a fix. As a workaround, we recommend using [Unity's WebRTC](https://docs.unity3d.com/Packages/com.unity.webrtc@2.4/manual/index.html)

Are you receiving any error messages? What is the connection status as it fails to connect?

Best,

El

---

<div class="post-metadata">

**Author:** ![abbas.khawaja](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@abbas.khawaja](https://forum.magicleap.cloud/u/abbas.khawaja)\
**Post date:** [June 18, 2024, 9:59pm UTC](https://forum.magicleap.cloud/t/webrtc-not-working/3562/3 "2024-06-18T21:59:59Z")

</div>

Do you have an example project of using Unity WebRTC with Magic Leap 2?

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [June 19, 2024, 10:30pm UTC](https://forum.magicleap.cloud/t/webrtc-not-working/3562/4 "2024-06-19T22:30:15Z")

</div>

Hi @abbas.khawaja,

Good news! We are in the process of creating a Unity WebRTC sample project. I will let you know as soon as the project is ready to be distributed publicly.

Best,

El

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/bd9b737a4d45ea243aa7eb177d60a773b806899a.svg) [@system](https://forum.magicleap.cloud/u/system)\
**Post date:** [August 14, 2024, 2:39am UTC](https://forum.magicleap.cloud/t/webrtc-not-working/3562/5 "2024-08-14T02:39:04Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
