# Is it possible to change the default port of coturn if yes how?

**URL:** <https://openvidu.discourse.group/t/is-it-possible-to-change-the-default-port-of-coturn-if-yes-how/1778>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [August 11, 2020, 1:59pm UTC](https://openvidu.discourse.group/t/is-it-possible-to-change-the-default-port-of-coturn-if-yes-how/1778 "2020-08-11T13:59:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subramanian\_Lakshman](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/subramanian_lakshman/32/877_2.png) [@Subramanian\_Lakshman](https://openvidu.discourse.group/u/Subramanian_Lakshman)\
**Post date:** [August 11, 2020, 1:59pm UTC](https://openvidu.discourse.group/t/is-it-possible-to-change-the-default-port-of-coturn-if-yes-how/1778/1 "2020-08-11T13:59:37Z")

</div>

I am trying to change the default port of coturn from 3478 to any other port. But was unsuccessful many times. Can someone let me know can we change the port if yes how?

I changed port number in /etc/turnserver.conf.  
Also changed the port in turnURL and Stun port in `/etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini`

While testing I get below error:

- KMS event [IceGatheringDone] -\> endpoint: siy5t3bg4c5phkzq\_CAMERA\_EGACG (publisher) | timestamp: 1597154322394
- KMS event [IceComponentStateChange]: -\> endpoint: siy5t3bg4c5phkzq\_CAMERA\_EGACG (publisher) | state: CONNECTING | componentId: 1 | streamId: 1 | timestamp: 1597154322427
- **KMS event [IceComponentStateChange]: -\> endpoint: siy5t3bg4c5phkzq\_CAMERA\_EGACG (publisher) | state: FAILED | componentId: 1 | streamId: 1 | timestamp: 1597154333132**

Regards,  
Subu.

---

<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:** [August 11, 2020, 2:11pm UTC](https://openvidu.discourse.group/t/is-it-possible-to-change-the-default-port-of-coturn-if-yes-how/1778/2 "2020-08-11T14:11:13Z")

</div>

There are many parts in OpenVidu assuming COTURN port if 3478.

If you want to change it, you should locate yourself all these parts and change them accordingly.

Regards

---

<div class="post-metadata">

**Author:** ![Subramanian\_Lakshman](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/subramanian_lakshman/32/877_2.png) [@Subramanian\_Lakshman](https://openvidu.discourse.group/u/Subramanian_Lakshman)\
**Post date:** [August 11, 2020, 2:20pm UTC](https://openvidu.discourse.group/t/is-it-possible-to-change-the-default-port-of-coturn-if-yes-how/1778/3 "2020-08-11T14:20:26Z")

</div>

Thank you for your response can you please name me those configuration files. It would be a great help for me

---

<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:** [August 11, 2020, 3:25pm UTC](https://openvidu.discourse.group/t/is-it-possible-to-change-the-default-port-of-coturn-if-yes-how/1778/4 "2020-08-11T15:25:25Z")

</div>

I’m sorry but I don’t know in detail. It is possible that there are values in the openvidu-browser source code and openvidu server source code.

Regards
