# WebSocket connection to wss failed

**URL:** <https://openvidu.discourse.group/t/websocket-connection-to-wss-failed/4721>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [July 29, 2023, 9:12am UTC](https://openvidu.discourse.group/t/websocket-connection-to-wss-failed/4721 "2023-07-29T09:12:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![poojakamra](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@poojakamra](https://openvidu.discourse.group/u/poojakamra)\
**Post date:** [July 29, 2023, 9:12am UTC](https://openvidu.discourse.group/t/websocket-connection-to-wss-failed/4721/1 "2023-07-29T09:12:03Z")

</div>

We have setup openvidu in local enviornment. Machine is not accessible from outside for network. So to run video conferencing feature we have created apache web server that is accessible from outside. In this apache server we have used proxypass setting to access openvidu functionality from customer end.  
IP of Openvidu server - 192.168.13.198. This machine has access of local network only.  
IP of apache server is public. Customer can access this IP.  
Settings in apache server -  
ProxyPass /openvidu [http://192.168.13.198/openvidu](http://192.168.13.198/openvidu)  
ProxyPassReverse /openvidu [http://192.168.13.198/openvidu](http://192.168.13.198/openvidu)

After these settings we are able to use openvidu’s api.  
Only error we are getting related to wss call.  
Error coming "WebSocket connection to ‘wss;[//192.168.13.198/openvidu](https://192.168.13.198/openvidu)’ failed.

Please help what settings need to be done in openvidu server. We are stuck with this and not able to make connection with client.

---

<div class="post-metadata">

**Author:** ![poojakamra](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@poojakamra](https://openvidu.discourse.group/u/poojakamra)\
**Post date:** [August 1, 2023, 5:33pm UTC](https://openvidu.discourse.group/t/websocket-connection-to-wss-failed/4721/2 "2023-08-01T17:33:14Z")

</div>

Please do help. Badly stuck with this.

---

<div class="post-metadata">

**Author:** ![poojakamra](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@poojakamra](https://openvidu.discourse.group/u/poojakamra)\
**Post date:** [December 16, 2025, 9:49am UTC](https://openvidu.discourse.group/t/websocket-connection-to-wss-failed/4721/3 "2025-12-16T09:49:33Z")

</div>

Still we are not able to access wss calls from apache web server. Client is not agreeing on to provide public IP to openvidu server directly.

Please assist.

---

<div class="post-metadata">

**Author:** ![poojakamra](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@poojakamra](https://openvidu.discourse.group/u/poojakamra)\
**Post date:** [December 22, 2025, 6:30am UTC](https://openvidu.discourse.group/t/websocket-connection-to-wss-failed/4721/4 "2025-12-22T06:30:25Z")

</div>

> [@poojakamra](#):
>
> nvidu in local enviornment. Machine is not accessible from outside for network. So to run video conferencing feature we have created apache web server that is accessible from outside. In this apache server we have used proxypass setting to access openvidu functionality from customer end.  
> IP of Openvidu server - 192.168.13.198. This machine has access of local network only.  
> IP of apache server is public. Customer can access this IP.  
> Settings in apache server -  
> ProxyPass /openvidu [http://192.168.13.198/openvidu](http://192.168.13.198/openvidu)  
> ProxyPassReverse /openvidu [http://192.168.13.198/openvidu](http://192.168.13.198/openvidu)

Still the same issue. Please suggest

---

<div class="post-metadata">

**Author:** ![n224](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/n224/32/2630_2.png) [@n224](https://openvidu.discourse.group/u/n224)\
**Post date:** [December 29, 2025, 10:30pm UTC](https://openvidu.discourse.group/t/websocket-connection-to-wss-failed/4721/5 "2025-12-29T22:30:15Z")

</div>

> [@poojakamra](#):
>
> nt. Machine is not accessible from outside for network. So to run video conferencing feature we have created apache web server that is accessible from outside. In this apache server we have used proxypass setting to access openvidu functionality from customer end.  
> IP of

according to documentation to use openvidu not only 443 port is needed, you nit also allow 7881 for pion, and maybe another to use stun (or use "–experimental-turn-tls-with-main-domain” when installing) . That error message always says “cannot communicate to wss:// etc”, but it’s wrong. [OpenVidu Single Node installation on-premises - OpenVidu](https://openvidu.io/latest/docs/self-hosting/single-node/on-premises/install/#port-rules)

---

<div class="post-metadata">

**Author:** ![poojakamra](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@poojakamra](https://openvidu.discourse.group/u/poojakamra)\
**Post date:** [January 1, 2026, 6:00am UTC](https://openvidu.discourse.group/t/websocket-connection-to-wss-failed/4721/6 "2026-01-01T06:00:45Z")

</div>

we are using openvidu 2x version. Is the same link applicable for 2x version as well?
