I have installed OpenViu and started the service as per docs and all appears well but even locally I cannot access the service on 4443, the nonsecure service works both externally and internally but using curl to call the dashboard URL on 4443 returns connection refused.
I can also see when I check with netstat that nothing is listening in port 4443
Whats weird is openvidu reports launch was sucessful.
Any ideas?
- Use locally this:
docker run -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET openvidu/openvidu-server-kms:2.18.0
- Your app should use as OpenVidu URL: https://localhost:4443
- Use this instructions in your On Prem / Cloud machine:
- Your app should point to https://<DOMAIN_OR_PUBLIC_IP>:443 if it is outside the OpenVidu machine. Also in official deployment, OpenVidu internally uses 5443. So if your App is in the same machine as OpenVidu, just use http://localhost:5443…
Here it is explained in more detail: OpenVidu Docs
TLDR, use port 443 in production for OpenVidu Api if your app is outside, or port 5443 if your app is in the same machine as OpenVidu…
Regards
Sadly this wasn’t able to resolve my issue but I can see that the issue goes away when we revert back to our old hostname.
Is there a process to reset the hostname? We use letsencrypt which works fine when we use the temporary hostname we use to set the server up but when we switch the DOMAIN_OR_PUBLIC_IP to the new hostname the services doesn’t start on 4443. When i switch back to the original hostname and restart the dock container the service starts. In all instances the openvidu docker reports that the service is tartyed on the secure port.
Is there another step we need to take?
I don’t understand what are you talking about.
Of course official deployment does not start on 4443. They start on 443. If you want to start the entire openvidu deployment in another port you can use this environment variable in /opt/openvidu/.env
:
HTTPS_PORT=4443
Can you show me the output of:
sudo su
cd /opt/openvidu
./openvidu report
Please also share your .env configuration and what is your purpose. Deploy in 4443 OpenVidu with Letsencrypt in a public network?
What do you mean by hostname? OpenVidu deployment does not use the hostname of the machine for anything.