# WebRTC SDP (WebSocket connection failed)

**URL:** <https://community.wowza.com/t/webrtc-sdp-websocket-connection-failed/51060>\
**Category:** Wowza Streaming Engine\
**Tags:** webrtc\
**Created:** [April 2, 2018, 12:30am UTC](https://community.wowza.com/t/webrtc-sdp-websocket-connection-failed/51060 "2018-04-02T00:30:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhammad\_Irfan](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@Muhammad\_Irfan](https://community.wowza.com/u/Muhammad_Irfan)\
**Post date:** [April 2, 2018, 12:30am UTC](https://community.wowza.com/t/webrtc-sdp-websocket-connection-failed/51060/1 "2018-04-02T00:30:08Z")

</div>

Hello,

I setup WebRTC configuration following this post [https://www.wowza.com/docs/how-to-use-webrtc-with-wowza-streaming-engine](https://www.wowza.com/docs/how-to-use-webrtc-with-wowza-streaming-engine), i already created streamlock certificate along with password and update configuration accordingly.

when i try to publish stream by running wowza webrtc addong. it throw error

WebSocket connection failed: wss://5ab\*\*\*[25b9d.streamlock.net/webrtc-session.json](http://25b9d.streamlock.net/webrtc-session.json)

Where 5ab\*\*\*[25b9d.streamlock.net](http://25b9d.streamlock.net) is my cert filename.

Now not sure how to create webrtc-session.json file i adjust wss url by guess. can you help me creating SDP url or what is the correct format for creating SDP URL.

Need help to setup webrtc properly.

Note: i am using wowza configured in AWS Cloud.

---

<div class="post-metadata">

**Author:** ![Quang\_Nguyen1](https://avatars.discourse-cdn.com/v4/letter/q/8797f3/32.png) [@Quang\_Nguyen1](https://community.wowza.com/u/Quang_Nguyen1)\
**Post date:** [April 2, 2018, 7:18am UTC](https://community.wowza.com/t/webrtc-sdp-websocket-connection-failed/51060/2 "2018-04-02T07:18:26Z")

</div>

Hello,

Your problem is the same me, after fixing in [_install-dir_]/conf/VHost.xml and everything is working. You should re-check the port 443 configuration with the streamlock certificate for wowza. Following this link : [https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service](https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service)

The same issue : [http://community.wowza.com/community/questions/8006/problems-with-webrtc.html](http://community.wowza.com/community/questions/8006/problems-with-webrtc.html)

Regards,

Quang

---

<div class="post-metadata">

**Author:** ![Jason\_Tuchler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_tuchler/32/462_2.png) [@Jason\_Tuchler](https://community.wowza.com/u/Jason_Tuchler)\
**Post date:** [April 2, 2018, 9:01pm UTC](https://community.wowza.com/t/webrtc-sdp-websocket-connection-failed/51060/3 "2018-04-02T21:01:01Z")

</div>

Hello @Muhammad Irfan

If the linked article does not work, please send the below for further review by a support ticket:

Click this link to open a [support ticket](https://www.wowza.com/support/open-ticket) and send the below folders for review:

[install-dir]/conf

[install-dir]/logs

[install-dir]/htdocs

If you are not sure how to get this information please see the following tutorial.

[https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux](https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux)

Regards,

JasonT

---

<div class="post-metadata">

**Author:** ![Steven\_Love](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Steven\_Love](https://community.wowza.com/u/Steven_Love)\
**Post date:** [November 1, 2018, 3:21pm UTC](https://community.wowza.com/t/webrtc-sdp-websocket-connection-failed/51060/4 "2018-11-01T15:21:32Z")

</div>

I was having this issue too, and it turned out to be an issue with my firewall on Windows 10.

It turned out that that relevant ports on my server (which is just my laptop) weren’t open. Conceptually, 5ab\*\*\*[25b9d.streamlock.net](http://25b9d.streamlock.net) just redirects to your server’s public IP address. You may want to verify that the relevant ports are open.

I noticed something was up when I could navigate to

localhost:8088/enginemanager, and

192.168.xxx.xxx:8088/enginemanager , (my internal IP) but could NOT get to

98.26.xx x.xxx:8088/enginemanager (my external IP)

I thought the only issue would be port-forwarding, and I set my router to forward port 8088 to my server. It still didn’t work.

I followed the instructions at [http://ctl.jhsph.edu/help/index.cfm/go/faq.display/faqID/105/](http://ctl.jhsph.edu/help/index.cfm/go/faq.display/faqID/105/) (which are for Windows 7, but worked on Windows 10) to open some ports associated with Wowza: 1935, 8088, and 443. This allowed me to access the enginemanager through my external IP, and for my WebSocket to finally connect.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![navjot\_babrah](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@navjot\_babrah](https://community.wowza.com/u/navjot_babrah)\
**Post date:** [December 13, 2018, 10:53pm UTC](https://community.wowza.com/t/webrtc-sdp-websocket-connection-failed/51060/5 "2018-12-13T22:53:40Z")

</div>

Hello I have same websocket connection failed but I am running my web server on http is that issue.

---

<div class="post-metadata">

**Author:** ![Divyaditya\_Shrivasta](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@Divyaditya\_Shrivasta](https://community.wowza.com/u/Divyaditya_Shrivasta)\
**Post date:** [June 21, 2020, 6:21pm UTC](https://community.wowza.com/t/webrtc-sdp-websocket-connection-failed/51060/6 "2020-06-21T18:21:34Z")

</div>

Hi - having a similar issue, except on Mac. How can I check the that relevant ports are open?

---

<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:** [June 22, 2020, 2:28am UTC](https://community.wowza.com/t/webrtc-sdp-websocket-connection-failed/51060/7 "2020-06-22T02:28:27Z")

</div>

SSL/TLS encryption is required for WebRTC, please use HTTPS.
