# Openvidu JS demo not working for me

**URL:** <https://openvidu.discourse.group/t/openvidu-js-demo-not-working-for-me/4826>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [October 24, 2023, 11:24pm UTC](https://openvidu.discourse.group/t/openvidu-js-demo-not-working-for-me/4826 "2023-10-24T23:24:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Antonio](https://openvidu.discourse.group/u/Antonio)\
**Post date:** [October 24, 2023, 11:24pm UTC](https://openvidu.discourse.group/t/openvidu-js-demo-not-working-for-me/4826/1 "2023-10-24T23:24:33Z")

</div>

Hi I am trying to test openvidujs but I get errors when trying to join. I am using the documentation from [openvidu-js - OpenVidu Docs](https://docs.openvidu.io/en/stable/tutorials/openvidu-js/) [https://docs.openvidu.io/en/stable/tutorials/openvidu-js/](https://docs.openvidu.io/en/stable/tutorials/openvidu-js/), do I have to install or configure anything additional to what is shown in the tutorial?

thanks for the help

 ![imagen](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/d/d7a9db0f51d0c7936f2ab82ce4a836dd1a5b8e90.png)

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [October 25, 2023, 8:49am UTC](https://openvidu.discourse.group/t/openvidu-js-demo-not-working-for-me/4826/2 "2023-10-25T08:49:24Z")

</div>

Hello,

What application server sample are you using? (Java, Node…)

I am afraid you are not connecting to the tutorial as expected. The steps described in all tutorials are only valid when connecting to the application ( **openvidu-js** in your case) through **[http://localhost](http://localhost)**.  
The Media API of the browser (for accessing the camera and microphone) only works in plain HTTP when served in localhost or 127.0.0.1. Try connecting to your app through localhost instead of whatever IP you are setting in the browser’s navigation bar.

For serving your app in other hostname different of localhost, you will need **HTTPS**.  
That’s why every tutorial has a link to this FAQ: [Test applications in my network with multiple devices](https://docs.openvidu.io/en/stable/troubleshooting/#3-test-applications-in-my-network-with-multiple-devices). There it is explained how to serve OpenVidu Server and the tutorial with HTTPS using a simple proxy.

Best regards.

---

<div class="post-metadata">

**Author:** ![Antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Antonio](https://openvidu.discourse.group/u/Antonio)\
**Post date:** [October 26, 2023, 8:58pm UTC](https://openvidu.discourse.group/t/openvidu-js-demo-not-working-for-me/4826/3 "2023-10-26T20:58:08Z")

</div>

hello, thank you for replying. Using localhost already makes the connection, it seems that’s all it was.

On the other hand, now I am trying to verify with hostname other than localhost and I have already done the indications shown in: [1. Run the OpenVidu deployment with your local IP and other configurations 🔗](https://docs.openvidu.io/en/stable/troubleshooting/#3-test-applications-in-my-network-with-multiple-devices)  
But I have problems opening the url by https, What could be wrong?

 ![imagen](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/8/8a8f13f1e5747d6d1e9f0c8a1363c3cd6de8cf9e.png)

thanks for your help, best regards

---

<div class="post-metadata">

**Author:** ![Antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Antonio](https://openvidu.discourse.group/u/Antonio)\
**Post date:** [October 27, 2023, 4:40pm UTC](https://openvidu.discourse.group/t/openvidu-js-demo-not-working-for-me/4826/4 "2023-10-27T16:40:03Z")

</div>

Hello, the openvidu-js client page has loaded. But I get some errors, I share image and lines of what is shown in the log.

I hope you can help me a little, thanks.

 ![imagen](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/b/bcf2fd917767b10fbb19c9a565c5d5940f969312.png)

Logs openvidu deployment

2023-10-27 15:56:23,434 DEBG ‘openvidu-server’ stdout output:  
[INFO] 2023-10-27 15:56:23,434 [http-nio-0.0.0.0-4443-exec-2] io.openvidu.server.rest.SessionRestController - REST API: POST /openvidu/api/sessions {customSessionId=SessionA, mediaMode=ROUTED, recordingMode=MANUAL, defaultRecordingProperties={name=, hasAudio=true, hasVideo=true, outputMode=COMPOSED, recordingLayout=BEST\_FIT, resolution=1280x720, frameRate=25, shmSize=536870912}}

2023-10-27 15:56:23,438 DEBG ‘openvidu-server’ stdout output:  
[WARN] 2023-10-27 15:56:23,435 [http-nio-0.0.0.0-4443-exec-2] io.openvidu.server.rest.SessionRestController - Session SessionA is already created

2023-10-27 15:56:23,566 DEBG ‘openvidu-server’ stdout output:  
[INFO] 2023-10-27 15:56:23,566 [http-nio-0.0.0.0-4443-exec-3] io.openvidu.server.rest.SessionRestController - REST API: GET /openvidu/api/sessions/SessionA

2023-10-27 15:56:23,750 DEBG ‘openvidu-server’ stdout output:  
[INFO] 2023-10-27 15:56:23,750 [http-nio-0.0.0.0-4443-exec-4] io.openvidu.server.rest.SessionRestController - REST API: POST /openvidu/api/sessions/SessionA/connection {type=null, data=null, role=null, kurentoOptions=null, rtspUri=null, networkCache=null}

2023-10-27 15:56:23,753 DEBG ‘openvidu-server’ stdout output:  
[INFO] 2023-10-27 15:56:23,753 [http-nio-0.0.0.0-4443-exec-4] io.openvidu.server.rest.SessionRestController - Generated token wss://192.168.66.247?sessionId=SessionA&token=tok\_PVSvTqY0xmGmKJEc

2023-10-27 15:56:43,283 DEBG ‘kms’ stdout output:  
0:39:00.850386192 8 0x7fb388001d90 DEBUG KurentoWebSocketTransport WebSocketTransport.cpp:365:keepAliveSessions: Keep-Alive for session ‘c8a50e9f-817b-4b20-9ee4-4cfc2b19c75e’

---

<div class="post-metadata">

**Author:** ![Antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Antonio](https://openvidu.discourse.group/u/Antonio)\
**Post date:** [October 27, 2023, 4:49pm UTC](https://openvidu.discourse.group/t/openvidu-js-demo-not-working-for-me/4826/5 "2023-10-27T16:49:53Z")

</div>

file with log info

[file log](https://drive.google.com/file/d/1BF4z04sS54BJG1hvU6IROb1HayH4mMe5/view?usp=drive_link)
