Skip to main content

Intranet Tunnel

The tunnel feature exposes a GatewayRuntime service inside the Watchdog network through a Studio-side Broker. Configure the Broker in Studio Web and configure the client in Watchdog Web.

RolePagePurpose
Studio BrokerStudio Web > TunnelAccepts Watchdog client connections and listens on external addresses.
Watchdog ClientWatchdog Web > TunnelConnects to the Broker and forwards an internal service.
Origin addressWatchdog client configurationService reachable from the Watchdog host, such as 127.0.0.1:6100.
Exposed addressWatchdog client configurationAddress listened on the Broker side, such as 0.0.0.0:8889.

Studio Broker

Studio tunnel page

Tunnel server configuration

Field or actionDescription
Enable tunnelEnable or disable Broker configuration.
Broker portPort used by Watchdog clients to connect to the Broker.
Auth tokenMust match the Watchdog client auth token.
Access keyMust match the Watchdog client access key. Leave both sides empty if not used.
SaveSave the form values.
ResetReload saved configuration.
Start serverStart the Broker with the saved configuration.
Stop serverStop the running Broker.

The "Endpoint information" tab lists bound clients, tunnel IDs, modes, exposed addresses, and bound time.

Watchdog Client

Watchdog tunnel page

Watchdog tunnel configuration panel

ActionDescription
Enable tunnelGlobal Watchdog tunnel switch.
New clientAdd a client in the configuration panel.
Card/table viewSwitch display mode; table view supports batch delete.
Activate all / deactivate allStart or stop all configured clients.
ConfigOpen full client configuration.

New tunnel client panel

FieldDescription
Client nameRequired and unique within one Watchdog instance.
EnableWhether this client participates in activation.
Tunnel server addressStudio Broker IP or domain.
Tunnel server portStudio Broker port.
Auth tokenSame as Studio Broker.
Access keySame as Studio Broker.
Origin addressInternal service address reachable from Watchdog.
Exposed addressBroker-side address exposed to external users.
Reconnect intervalDelay before automatic reconnection.

Joint Debugging Steps

  1. Save Studio Broker port, auth token, and access key.
  2. Start the Studio Broker and confirm the status is running.
  3. Enable tunnel in Watchdog Web.
  4. Add a Watchdog client with the Studio Broker address and matching credentials.
  5. Set origin address, for example 127.0.0.1:6100.
  6. Set exposed address, for example 0.0.0.0:8889.
  7. Save and activate the client.
  8. Check Studio "Endpoint information" for the bound endpoint.
  9. Access http://<StudioServerIP>:<exposedPort> from the external network.

Troubleshooting

SymptomSuggested action
Broker fails to startCheck port occupation, port range, and whether configuration was saved.
Client not activatedCheck the global Watchdog tunnel switch and saved client configuration.
Client disconnectedCheck Broker status, address, port, network, and firewall.
Connected but not boundCheck access key and exposed port occupation.
Endpoint list is emptyRefresh Studio endpoint tab and inspect Watchdog logs for binding errors.
External access failsCheck exposed port firewall, origin address reachability, and GatewayRuntime status.