# Openvidu over VPN; Problem to get the actual coturnIp

**URL:** <https://openvidu.discourse.group/t/openvidu-over-vpn-problem-to-get-the-actual-coturnip/3977>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [May 18, 2022, 7:57am UTC](https://openvidu.discourse.group/t/openvidu-over-vpn-problem-to-get-the-actual-coturnip/3977 "2022-05-18T07:57:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lu15](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@lu15](https://openvidu.discourse.group/u/lu15)\
**Post date:** [May 18, 2022, 7:57am UTC](https://openvidu.discourse.group/t/openvidu-over-vpn-problem-to-get-the-actual-coturnip/3977/1 "2022-05-18T07:57:48Z")

</div>

Hi.

I’m developing a web app using the webcomponent and openvidu server.

The connection between the web browser and openvidu server is through VPN GlobalProtect so, such as openvidu documentation say, I have to enable the openvidu server machine port 3478 in the VPN.

To prove this I’m using your tutorials apps, specifically openvidu-hello-word and openvidu-webcomponent (it’s easier for me). In the console log messages I can see this:

STUN/TURN server IP: x.x.x.x  
OpenViduLogger.ts:222 TURN temp credentials [xxxxx:xxxxx]

But this server IP is the GlobalProtect Ip no the coturn Ip.

I’ve inspect the openvidu-browser-2.19.0.js and openvidu-browser-2.21.0.js code and this information is getting by OpenVidu Server RPC protocol joinRoom method but why the coturnIp field is set to the GlobalProtect server.

I deployed the openvidu server with docker in ubuntu 20.04 and only configurated the .env file.

Do I need to do another kind of configuration??

Thanks in advance.

Regards.

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [May 18, 2022, 9:38am UTC](https://openvidu.discourse.group/t/openvidu-over-vpn-problem-to-get-the-actual-coturnip/3977/2 "2022-05-18T09:38:56Z")

</div>

Hello @lu15

Go to `/opt/openvidu/.env` and add this to your .env file and add this parameter:

```auto
COTURN_IP=<YOUR_COTURN_IP>

```

Check if this works for you  
Regards

---

<div class="post-metadata">

**Author:** ![lu15](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@lu15](https://openvidu.discourse.group/u/lu15)\
**Post date:** [May 18, 2022, 11:53am UTC](https://openvidu.discourse.group/t/openvidu-over-vpn-problem-to-get-the-actual-coturnip/3977/3 "2022-05-18T11:53:06Z")

</div>

Perfect!

Thanks Carlos
