# How OpenVidu detect the Public IP when offering the default ICE Servers address

**URL:** <https://openvidu.discourse.group/t/how-openvidu-detect-the-public-ip-when-offering-the-default-ice-servers-address/5100>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [May 29, 2024, 9:56am UTC](https://openvidu.discourse.group/t/how-openvidu-detect-the-public-ip-when-offering-the-default-ice-servers-address/5100 "2024-05-29T09:56:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felix](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/felix/32/2445_2.png) [@Felix](https://openvidu.discourse.group/u/Felix)\
**Post date:** [May 29, 2024, 9:56am UTC](https://openvidu.discourse.group/t/how-openvidu-detect-the-public-ip-when-offering-the-default-ice-servers-address/5100/1 "2024-05-29T09:56:18Z")

</div>

If we don’t configure OPENVIDU\_WEBRTC\_ICE\_SERVERS in .env file, OpenVidu will use it’s own coturn service address.  
When a webrtc user join room, the server will give the response with the default turn server.  
For example:

```auto
{
    "customIceServers": [
        {
            "url": "turn:165.225.xxx.xxx:3478",
            "username": "1717062407:24ue9awO",
            "credential": "1V9oCVaXQZS0r89cXh1eQAWdbk8="
        }
    ]
}

```

Here **turn:165.225.xxx.xxx:3478** is generated by the server, and I found the IP 165.225.xxx.xxx is the public address of the company network, because I didn’t configure it anywhere, is it correct? The question is how the server detected this public address as turn server address?  
Can anyone help understand this issue? Thanks.

---

<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:** [May 29, 2024, 11:01am UTC](https://openvidu.discourse.group/t/how-openvidu-detect-the-public-ip-when-offering-the-default-ice-servers-address/5100/2 "2024-05-29T11:01:24Z")

</div>

OpenVidu Server is able to automatically discover the public IP: [openvidu/openvidu-server/docker/utils/discover\_my\_public\_ip.sh at master · OpenVidu/openvidu · GitHub](https://github.com/OpenVidu/openvidu/blob/master/openvidu-server/docker/utils/discover_my_public_ip.sh)

This strategy works fine for almost any setup. Only a handful of deployments behind heavily-restricted firewalls would need manual configuration.

---

<div class="post-metadata">

**Author:** ![Felix](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/felix/32/2445_2.png) [@Felix](https://openvidu.discourse.group/u/Felix)\
**Post date:** [May 30, 2024, 2:55am UTC](https://openvidu.discourse.group/t/how-openvidu-detect-the-public-ip-when-offering-the-default-ice-servers-address/5100/3 "2024-05-30T02:55:45Z")

</div>

Understood, thanks a lot.
