I tried to deploy the openvidu-mvc-java Tutorial on my own PC.
When the IP address is localhost, it works perfectly.
However, I changed my address from localhost to 192.168.12.25 (my local IP) and then I used another PC to visit this IP, there is a problem:
The other PC got a token still with localhost:4443 on it, even though I changed IP on my Java project in the application.property file(It seems that is the only place I can change my IP).
The java file create a OpenVidu Object using IP and a Secret. Even though the IP I gave is correct, the openvidu object still gives localhost as default.
Any idea why is this happening and how do I fix it?
Any help is appreciated.
my application.property file
server.port: 5000
server.ssl.enabled: true
server.ssl.key-store: classpath:openvidu-selfsigned.jks
server.ssl.key-store-password: openvidu
server.ssl.key-store-type: JKS
server.ssl.key-alias: openvidu-selfsigned
openvidu.url: https://192.168.12.25:4443/
openvidu.secret: MY_SECRET
For development, to connect devices in the same network use the development container:
$ docker run -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET
To deploy OpenVidu platform for productiin use the on premises deployment instructions:
https://docs.openvidu.io/en/2.17.0/deployment/deploying-on-premises/
Do not use openvidu server java project directly if you do not want to modify the OpenVidu code.
Regards
1 Like
Thanks for the reply.
When I tried to install the program, there is another problem as the following:
sh-3.2# curl https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/install_openvidu_2.17.0.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13363 100 13363 0 0 12535 0 0:00:01 0:00:01 --:–:-- 12535
=======================================
Install Openvidu CE v2.17.0
=======================================
=> Creating folder openvidu...
=> Downloading Openvidu CE files:
=======¡ERROR!=======
Error when downloading the file '.env'
I deployed it on my Mac. Where did I do wrong?
OpenVidu is designed to be deployed in linux for production usage.
Regards
1 Like