# How to use the TestOps Tunnel

**URL:** <https://forum.katalon.com/t/how-to-use-the-testops-tunnel/185043>\
**Category:** Miscellaneous\
**Tags:** tunnel\
**Created:** [October 27, 2025, 3:02pm UTC](https://forum.katalon.com/t/how-to-use-the-testops-tunnel/185043 "2025-10-27T15:02:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maurits.lourens](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/maurits.lourens/32/32480_2.png) [@maurits.lourens](https://forum.katalon.com/u/maurits.lourens)\
**Post date:** [October 27, 2025, 3:02pm UTC](https://forum.katalon.com/t/how-to-use-the-testops-tunnel/185043/1 "2025-10-27T15:02:49Z")

</div>

I have a web application running on a local machine, which is also running a stub application on localhost. This web application is accessible using a public url, which Katalon uses to test the application.

I am currently running this stub application inside the Katalon TestOps instance using ‘command.execute(java -jar stub.jar)’. This is not the recommended way according to Katalon. I should use a tunnel which should enable me to access the stub application running on a different server.

My question is: it seems that using a tunnel is running all my tests via the tunnel instead of just using the tunnel to access my stub application. Is that a correct assumption? And is it possible to point to my stub application through the tunnel and test the web application using TestOps (without using the tunnel)? How do I configure that?

---

<div class="post-metadata">

**Author:** ![vu.tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/vu.tran/32/20584_2.png) [@vu.tran](https://forum.katalon.com/u/vu.tran)\
**Post date:** [October 28, 2025, 2:45pm UTC](https://forum.katalon.com/t/how-to-use-the-testops-tunnel/185043/2 "2025-10-28T14:45:21Z")

</div>

Pumping this up for others to help!

---

<div class="post-metadata">

**Author:** ![Monty\_Bagati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/monty_bagati/32/33047_2.png) [@Monty\_Bagati](https://forum.katalon.com/u/Monty_Bagati)\
**Post date:** [October 30, 2025, 4:53am UTC](https://forum.katalon.com/t/how-to-use-the-testops-tunnel/185043/3 "2025-10-30T04:53:53Z")

</div>

Yes, your assumption is **correct by default**. When you enable the TestCloud Tunnel, all traffic for the test session is typically routed through it.

### How to Achieve Selective Tunneling

To point only the stub application through the tunnel and test the main application without it, you must use the **Static Forwarding Mode** of the TestCloud Tunnel.

1. **Configure:** Use the TestCloud Tunnel CLI (`kt`) to set the forwarding mode to `static` and define a port forwarding rule for your stub application’s local address and port.

2. **Update Script:** In your test script, access the stub application using the **forwarded port** and `localhost` (e.g., `http://localhost:50001/``...`).

**Result:** Requests to the stub will be routed through the tunnel, while requests to your public web application URL will bypass the tunnel.

> **[Local testing with TestCloud in Katalon Studio | Katalon Docs](https://docs.katalon.com/katalon-testcloud/local-testing-with-testcloud/local-testing-with-testcloud-in-katalon-studio)**
>
> This document shows you how to set up TestCloud Tunnel in Katalon Studio and perform local testing.
