How do I set janus server address?

  janus, javascript, webrtc, websocket

I installed Meetecho’s Janus WebRTC Server on my WSL 2.

I can run the demo when setting

server = ["ws://" + window.location.hostname + ":8188", "/janus" ];

Suppose 22.22.22.22 is my public ip address. then I set

server = ["ws://22.22.22.22:8188", "/janus"];

It says cannot connect to the server.

So how do I set the server address if I want the outside user to access it?
Thanks.

Source: Ask Javascript Questions

LEAVE A COMMENT