# Vitxi can't connect to wss 

**URL:** https://forums.vitalpbx.org/t/vitxi-cant-connect-to-wss/3206
**Category:** VitXi WebRTC
**Created:** [September 11, 2023, 8:26pm UTC](https://forums.vitalpbx.org/t/vitxi-cant-connect-to-wss/3206 "2023-09-11T20:26:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![zachz](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/zachz/32/425_2.png) [@zachz](https://forums.vitalpbx.org/u/zachz)
#### Post date: [September 11, 2023, 8:26pm UTC](https://forums.vitalpbx.org/t/vitxi-cant-connect-to-wss/3206/1 "2023-09-11T20:26:24Z")

</div>

I can’t seem to use my Vitxi installation anymore. It was working, up until a recent update.

I keep getting the console error “can’t establish a connection to the server at wss://REDACTED:6001/app/vitxi4561aq/console.”

I’m connecting via LAN, so no third party firewall is between me and the server. It’s installed alongside VItalPBX, not on a different server.

Any help is appreciated. Thanks.

---

<div class="post-metadata">

### Author: ![maynor](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@maynor](https://forums.vitalpbx.org/u/maynor)
#### Post date: [September 11, 2023, 8:27pm UTC](https://forums.vitalpbx.org/t/vitxi-cant-connect-to-wss/3206/2 "2023-09-11T20:27:33Z")

</div>

Hello!

Please verify that port 6001 is enabled in VitalPBX and in any Firewall you have active.

Then, run the following commands:

**vitalpbx apply-firewall**

**/usr/share/vitxi/backend/artisan websockets:ssl-config**

**systemctl restart vitxi**

After that, please reload the application by pressing Ctrl + F5 (perform a hard reload to clear the browser cache).

Please let me know if it worked.

Regards!

---

<div class="post-metadata">

### Author: ![zachz](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/zachz/32/425_2.png) [@zachz](https://forums.vitalpbx.org/u/zachz)
#### Post date: [September 11, 2023, 8:43pm UTC](https://forums.vitalpbx.org/t/vitxi-cant-connect-to-wss/3206/3 "2023-09-11T20:43:23Z")

</div>

No luck, same error message. I did get the following error after running the ssl-config command you gave me.

`Error: no se pudo encontrar la ruta del archivo de certificado SSL CA en el archivo de configuración de Apache.`

---

<div class="post-metadata">

### Author: ![maynor](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@maynor](https://forums.vitalpbx.org/u/maynor)
#### Post date: [September 11, 2023, 8:50pm UTC](https://forums.vitalpbx.org/t/vitxi-cant-connect-to-wss/3206/4 "2023-09-11T20:50:30Z")

</div>

Do you have a Let’s Encrypt SSL certificate configured, or do you have a custom certificate?

If you have a custom certificate, could you please check in the “Certificates” module of VitalPBX if the “chain” field has a value? If it doesn’t, you can set the content of the chain file provided by the certificate issuer in this field. Alternatively, you can copy the content from the “Certificate” field to the “chain” field.

After that, please try running the commands I provided again.

---

<div class="post-metadata">

### Author: ![zachz](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/zachz/32/425_2.png) [@zachz](https://forums.vitalpbx.org/u/zachz)
#### Post date: [September 11, 2023, 9:05pm UTC](https://forums.vitalpbx.org/t/vitxi-cant-connect-to-wss/3206/5 "2023-09-11T21:05:22Z")

</div>

That was the trick! I have a custom SSL cert, and didn’t fill in the chain when I initially set it up. Seems to be working now. Thanks!

---

<div class="post-metadata">

### Author: ![maynor](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@maynor](https://forums.vitalpbx.org/u/maynor)
#### Post date: [September 11, 2023, 9:12pm UTC](https://forums.vitalpbx.org/t/vitxi-cant-connect-to-wss/3206/6 "2023-09-11T21:12:10Z")

</div>

I’m glad to help!! :)))
