# VPN connection failure

**URL:** <https://forum.katalon.com/t/vpn-connection-failure/100188>\
**Category:** Bug Report\
**Tags:** runtime-engine, katalon-studio\
**Created:** [October 23, 2023, 2:41pm UTC](https://forum.katalon.com/t/vpn-connection-failure/100188 "2023-10-23T14:41:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chp](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chp/32/23869_2.png) [@chp](https://forum.katalon.com/u/chp)\
**Post date:** [October 23, 2023, 2:41pm UTC](https://forum.katalon.com/t/vpn-connection-failure/100188/1 "2023-10-23T14:41:38Z")

</div>

In my case, and in probably a few other cases scattered in this forum as I have seen, it turns out that test runs over VPN connections fail because of the forced license activation check on every single test run, which fails because Katalon’s auth server doesn’t allow these requests via VPN connections.

Please enable VPN connections, I don’t even know why you turned them off.  
For reference, I’m using NordVPN.

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [October 23, 2023, 2:43pm UTC](https://forum.katalon.com/t/vpn-connection-failure/100188/2 "2023-10-23T14:43:30Z")

</div>

Hi @chp,

Thank you very much for reporting this issue on our forum. Could you also include a screenshot/error log in your topic so that we can see what you are dealing with? Thanks.

* * *

I am also going to tag @xuan.tran from our Katalon Studio team so that she can take a look at this issue.

---

<div class="post-metadata">

**Author:** ![hiru](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/hiru/32/19930_2.png) [@hiru](https://forum.katalon.com/u/hiru)\
**Post date:** [October 24, 2023, 9:16am UTC](https://forum.katalon.com/t/vpn-connection-failure/100188/3 "2023-10-24T09:16:38Z")

</div>

Have you tried proxy settings yet? [Configure Proxy Preferences in Katalon Studio | Katalon Docs](https://docs.katalon.com/docs/get-started/set-up-your-workspace/katalon-studio-preferences/configure-proxy-preferences-in-katalon-studio#:~:text=To%20access%20Proxy%20preferences%2C%20go,authenticating%20with%20Katalon%20Authentication%20servers).

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [October 24, 2023, 9:32am UTC](https://forum.katalon.com/t/vpn-connection-failure/100188/4 "2023-10-24T09:32:03Z")

</div>

Assigned @Elly\_Tran on October 24, 2023, 9:32am UTC

Hi em, could you follow up with Xuan Tran or someone from our Katalon Studio team for this inquiry? Thanks em

---

<div class="post-metadata">

**Author:** ![chp](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chp/32/23869_2.png) [@chp](https://forum.katalon.com/u/chp)\
**Post date:** [October 24, 2023, 10:03am UTC](https://forum.katalon.com/t/vpn-connection-failure/100188/5 "2023-10-24T10:03:35Z")

</div>

Here’s the log viewer output over a NordVPN connection: [Katalon Failed Connection Over VPN - Pastebin.com](https://pastebin.com/j2StNgJx)

Here’s the log viewer output without a VPN:

```plaintext

Elapsed time: 1.545s

Test Cases/TC01_REST_Verify Email from list of Comments

```

Here’s the log using the CLI runtime over a NordVPN connection:

```plaintext
The number of valid offline licenses: 0
Online activation for console mode failed.

Tue Oct 24 11:51:13 CEST 2023
Cannot send request, retry to send.

No proxy found.
Retrying in 1 seconds...

Tue Oct 24 11:51:15 CEST 2023
Cannot send request, retry to send.

No proxy found.
Retrying in 2 seconds...

Tue Oct 24 11:51:17 CEST 2023
Cannot send request, retry to send.

No proxy found.
Retrying in 4 seconds...

```

and here is the console log for CLI runtime without VPN:

```plaintext
The number of valid offline licenses: 0
Start activating online...
Katalon TestOps: Unexpected response, URL: https://admin.katalon.com/oauth/token, Status: 400, Response: {"error":"invalid_grant","error_description":"Authentication failed."}
TestCloud: Unexpected response, URL: https://api.katalon.com/v1/auth/login, Status: 401, Response: {"errors":[]}
Failed to activate with Katalon Runtime Engine license. Authentication failed. {"error":"invalid_grant","error_description":"Authentication failed."}
Failed to activate with TestCloud license. {"errors":[]}
All launchers terminated

```

All launched Katalon instances were using the trial license and sample API project. Why the trial? Because we are looking for a TA tool for the next project and Katalon is a close candidate.  
I know that the CLI runtime does not work using a trial license, however you can see in the CLI logs, that Katalon fails to establish a connection via VPN, so it doesn’t even get to the part where you would receive a 400 response.

What is the solution to the problem? Your auth server needs to be configured to accept VPN connections.  
Do the provided logs help with that? Not really.  
Have you tried a proxy? That is not the issue here and I don’t have a proxy to use.  
So who can fix this? The team responsible for Katalon’s network.

Hope this helps 🙂

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [October 25, 2023, 4:16am UTC](https://forum.katalon.com/t/vpn-connection-failure/100188/6 "2023-10-25T04:16:25Z")

</div>

Hi,

Thank you so much for your sharing. I will ask my team about this case and update you asap. In the meanwhile, which version have you been using? Thank you!

---

<div class="post-metadata">

**Author:** ![chp](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chp/32/23869_2.png) [@chp](https://forum.katalon.com/u/chp)\
**Post date:** [October 25, 2023, 6:42am UTC](https://forum.katalon.com/t/vpn-connection-failure/100188/7 "2023-10-25T06:42:36Z")

</div>

I tried it with both 8.6.8 and 9.0.0 beta versions.

---

<div class="post-metadata">

**Author:** ![hiru](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/hiru/32/19930_2.png) [@hiru](https://forum.katalon.com/u/hiru)\
**Post date:** [October 25, 2023, 9:28am UTC](https://forum.katalon.com/t/vpn-connection-failure/100188/8 "2023-10-25T09:28:56Z")

</div>

What I meant is this screen/dialog here:

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/e/c/ecb319923094666e7459e07bfaa8335261a0ee5b.jpeg)  
Please choose the Proxy → Authentication  
I don’t know if your VPN is using dedicated or dynamic IP or what but you need to enter that IP into the Address field  
If it has the port in the VPN then enter into the field Port  
The server type maybe HTTPS/ HTTP

This setting will allow the connection between your pc and Katalon server can go through each other
