# How can I deploy OpenVidu 2.13 if ports are busy?

**URL:** <https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [April 25, 2020, 8:23am UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551 "2020-04-25T08:23:18Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![t3mnikov](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/t3mnikov/32/283_2.png) [@t3mnikov](https://openvidu.discourse.group/u/t3mnikov)\
**Post date:** [April 25, 2020, 8:23am UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/1 "2020-04-25T08:23:18Z")

</div>

Hi!  
I want to switch to version 2.13, since it is easier to deploy. But unfortunately on my server ports 80, 443, 6379 are busy. Can you help me?

---

<div class="post-metadata">

**Author:** ![jeffma](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/jeffma/32/106_2.png) [@jeffma](https://openvidu.discourse.group/u/jeffma)\
**Post date:** [April 25, 2020, 11:03am UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/2 "2020-04-25T11:03:01Z")

</div>

I also like to use 4443 port as before, instead of 443 port. I have SSL certificate. Can I set openvidu.publicurl for production?

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [April 26, 2020, 10:48pm UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/3 "2020-04-26T22:48:38Z")

</div>

We are working on allowing defining the port in properties file `.env`

---

<div class="post-metadata">

**Author:** ![jeffma](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/jeffma/32/106_2.png) [@jeffma](https://openvidu.discourse.group/u/jeffma)\
**Post date:** [April 27, 2020, 3:12am UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/4 "2020-04-27T03:12:57Z")

</div>

PORT=4443 in .env would be really nice. 443 should be reserved for browser url, visible to user…

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [April 27, 2020, 2:57pm UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/5 "2020-04-27T14:57:23Z")

</div>

Right now you can deploy your own app behind the proxy used by OpenVidu. It is really easy and allows you to have all integrated with the same domain and same SSL certificate.

In any case, we will add a new config property to allow PORT configuration in `.env` file.

---

<div class="post-metadata">

**Author:** ![t3mnikov](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/t3mnikov/32/283_2.png) [@t3mnikov](https://openvidu.discourse.group/u/t3mnikov)\
**Post date:** [April 29, 2020, 2:55am UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/6 "2020-04-29T02:55:14Z")

</div>

Make advanced config for specify Redis port, please.

---

<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:** [April 29, 2020, 7:36am UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/7 "2020-04-29T07:36:30Z")

</div>

Redis doesn’t need to and is not exposed to the Internet in a regular OpenVidu deployment.

---

<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:** [April 29, 2020, 8:01am UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/8 "2020-04-29T08:01:52Z")

</div>

If you want to change the internal port used by redis, take into account that this won’t be configurable in the .env file. Public port is reasonable that may be changed from the global config, but if you want certain specific internal port not to be used by the redis, you will have to adapt the docker-compose file yourself (shouldn’t be complicated)

---

<div class="post-metadata">

**Author:** ![t3mnikov](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/t3mnikov/32/283_2.png) [@t3mnikov](https://openvidu.discourse.group/u/t3mnikov)\
**Post date:** [April 29, 2020, 8:49am UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/9 "2020-04-29T08:49:28Z")

</div>

Thanks Pablo. I understand

---

<div class="post-metadata">

**Author:** ![jeffma](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/jeffma/32/106_2.png) [@jeffma](https://openvidu.discourse.group/u/jeffma)\
**Post date:** [May 5, 2020, 12:41am UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/10 "2020-05-05T00:41:27Z")

</div>

A naive question: is it possible to run two NGINX on a machine, listening to different ports, one inside of docker, one outside? We have apps that are managed by NGINX to manage video recordings for example.

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [May 5, 2020, 6:25am UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/11 "2020-05-05T06:25:27Z")

</div>

Yes. You can do it.

In fact, when you deploy OpenVidu 2.13 you have two NGINXs. The main one, managing the certificates and the second one, to serve OpenVidu call. Both dockerized.

In 2.13, the main NGINX is listen on 80 and 443. The app NGINX is listen in 5442.

In 2.14 you will be able.to change the port where main NGINX is listening.

Regards

---

<div class="post-metadata">

**Author:** ![APortenov](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@APortenov](https://openvidu.discourse.group/u/APortenov)\
**Post date:** [May 5, 2020, 9:46am UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/12 "2020-05-05T09:46:22Z")

</div>

How we configure kurento media server port . On previous versions there was array for kms\_urls  
i have read in some post that the property is there but when i run  
docker run --name openvidu -p 4443:4443 --rm -e openvidu.secret=MY\_SECRET -e kms\_urls=[“ws://localhost:8887/kurento”] openvidu/openvidu-server-kms:latest

2020-05-05 09:39:12,655 DEBG ‘openvidu-server’ stdout output:  
[INFO] 2020-05-05 09:39:12,655 [EventExec-e2-t0] io.openvidu.server.kurento.kms.KmsManager - Kurento Client “connected” event for KMS ws://localhost:8888/kurento [org.kurento.client.KurentoClient@521181e7]

---

<div class="post-metadata">

**Author:** ![jeffma](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/jeffma/32/106_2.png) [@jeffma](https://openvidu.discourse.group/u/jeffma)\
**Post date:** [May 5, 2020, 12:52pm UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/13 "2020-05-05T12:52:08Z")

</div>

Great. I set up another NGINX, among several services, it listens to 5442, and forward to a folder that contains our main web page. Now our main page is on 443! I don’t need to wait for 2.14 any more. Cheers 🙂

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [May 5, 2020, 4:31pm UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/14 "2020-05-05T16:31:07Z")

</div>

That was the original idea. Glad to hear that is working for you.

---

<div class="post-metadata">

**Author:** ![tomasz](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@tomasz](https://openvidu.discourse.group/u/tomasz)\
**Post date:** [May 9, 2020, 12:28pm UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/15 "2020-05-09T12:28:00Z")

</div>

Hi, how exactly did you do that? I.e.: which nginx (running on host or within docker) config file did you set to what port and purpose? Thanks!

---

<div class="post-metadata">

**Author:** ![jeffma](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/jeffma/32/106_2.png) [@jeffma](https://openvidu.discourse.group/u/jeffma)\
**Post date:** [May 9, 2020, 2:00pm UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/16 "2020-05-09T14:00:50Z")

</div>

nginx on host (ubuntu 16.04 in my case) and normal settings, just don’t listen on 443 or 80.

---

<div class="post-metadata">

**Author:** ![tomasz](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@tomasz](https://openvidu.discourse.group/u/tomasz)\
**Post date:** [May 9, 2020, 2:16pm UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/17 "2020-05-09T14:16:11Z")

</div>

if so, then I don’t understand how your main page is served over 443. Did you somehow modify OpenVidu’s 443 nginx to serve your page? what else did you set?

---

<div class="post-metadata">

**Author:** ![jeffma](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/jeffma/32/106_2.png) [@jeffma](https://openvidu.discourse.group/u/jeffma)\
**Post date:** [May 9, 2020, 2:18pm UTC](https://openvidu.discourse.group/t/how-can-i-deploy-openvidu-2-13-if-ports-are-busy/551/18 "2020-05-09T14:18:33Z")

</div>

read above. the nginx inside docker listens to 443, and forward to 5442, my nginx listens to 5442, forwards to a folder.
