Skip to main content

Quick Start

This guide is used to complete the initial deployment, logon, and basic inspection of ThingsGatewayRuntime. When using it for the first time, it is recommended to first confirm that all three web management entries are accessible, then enter GatewayRuntime Web to check the gateway's operating status, engineering information, and basic menu permissions.

Current screenshots and configuration instructions are organized according to GatewayRuntime 2.1.22.

This article is intended for on-site personnel experiencing the system for the first time. It only states whether the service is accessible, whether the account can log in, and whether the gateway is running normally; When actually connecting PLCs, instruments, point tables, and upper-level systems, please continue reading the corresponding special topic pages without having to read through all documents page by page.

What are you going to do now?Keep looking at where
Get the system running first.Continue reading this article to confirm Studio, GatewayRuntime and Watchdog are three entry points.
Connect PLC, instrument, or sensorCollection Configurationand configure in the order of channels, devices, and variables.
Verify the register address or write pointDevice Debugging, read before write, and confirm on-site safety before writing.
Send data to the host computer, MES, SCADA, or cloud platformData Forwarding, first debug on a small scale, then expand the point table.
View alarms, historical data, or runlogsGatewayRuntime Web Operation Manualand search by function entry.

Services and Access Addresses

ThingsGatewayRuntime consists of three web management entries.

ServiceDefault addressPurpose
Studiohttp://<server-ip>:5100Project management, runtime management, intranet tunneling broker, and Watchdog connection management
GatewayRuntimehttp://<gateway-ip>:6100Gateway runtime configuration, collection configuration, data forwarding, alarms, logs, and user permissions
Watchdoghttp://<gateway-ip>:6200Gateway process supervision, project package upload, logs, backups, tunnel clients, and runtime parameters

Default account is admin, default password is 111111. Before starting production for the first time, please log in to your corresponding system's account or settings page to change the default password.

The bundled Studio and Watchdog configurations listen on 0.0.0.0 and officially support direct access through the http://<ip>:<port> addresses above. Login and first-time initialization passwords are encrypted with a one-time RSA-OAEP-SHA256 public-key challenge. Standard HTTP pages accessed by IP address do not depend on the browser's SubtleCrypto secure context.

HTTP Security Boundary

Password Challenge only provides extra protection for the password fields used during login and initialization, and cannot replace HTTPS. Bearer tokens, password change requests, engineering packages, backups, and other management data are still not encrypted on regular HTTP links. The isolated industrial LAN can use HTTP IP as required by the site; HTTPS is prioritized for public or trusted networks.

Pre-deployment Check

CheckitemsRequirements
Operating SystemWindows 10/11, Windows Server 2016+, mainstream Linux distributions
RuntimeNormal release requires .NET 10 Runtime; AOT release package can run independently
portacknowledge 5100,6100, 6200 unoccupied and release firewall as needed
Remote ManagementStudio acknowledge RemoteManagementEnabled=true; Watchdog also needs RemoteDeploymentEnabled=true. When using a regular HTTP IP, both should ensure AllowInsecureRemoteHttp=true
directorykeep Studio andWatchDog,GatewayApp, Projects, etc. have complete directory structures
permissionsLinux grants executable permissions to executable files; Windows service installation requires administrator privileges

Startup Order

  1. Launch ThingsGatewayStudio on the server for project management and remote deployment.
  2. Start ThingsGatewayRuntime.Watchdog on the gateway device, which manages the GatewayRuntime process.
  3. After Watchdog starts, it checks and starts GatewayRuntime in the GatewayApp according to the configuration instructions.
  4. Open your browser and access the web address for Studio, GatewayRuntime, or Watchdog.

Log in to GatewayRuntime

Open http://<gateway-ip>:6100, enter your username and password, and click "Login".

GatewayRuntime login page

After successful login, you enter the "System Overview" by default, where you can view channels, devices, variables, alarms, system resources, and engineering information.

GatewayRuntime System Overview

It is recommended to complete the following checks after the first login.

StepsPageOperations
1System OverviewConfirm whether the number of devices, variables, CPU, memory, and engineering information are normal
2Collect ConfigurationCheck whether channels, devices, and variables are loaded and if there are offline devices
3Data forwardingCheck whether forwarding groups and forwarding targets are enabled, and whether recent active time has been updated
4System LogsCheck for Exceptions in Backend Logs, Operation Logs, and RPC Logs
5User ManagementChange Default Password and Assign Account Permissions by Role

Log In Studio

Open http://<server-ip>:5100 and sign in with your Studio account. The page automatically retrieves a one-time public-key challenge valid for two minutes, encrypts the password, and then submits it. After login, it uses a JWT Bearer token to access the application APIs.

Studio Login Page

After logging in, enter the "Overview" to view current running projects, tunnel services, watchdog status, and recent projects.

Studio Overview Page

Common entry points for Studio are as follows.

PagePurpose
OverviewView running projects, tunnel services, watchdog health
My ProjectsNew, import, upload, stop running, and download projects from gateways
Intranet traversalConfigure Studio tunnel Broker
WatchdogManage Watchdog connections, test status, and upload projects

Log in to Watchdog

Open http://<gateway-ip>:6200 and sign in with your Watchdog account. The page automatically retrieves a one-time public-key challenge and encrypts the password. After login, it uses an opaque Bearer session valid for eight hours. Logging out revokes the current session, and you must sign in again after Watchdog restarts.

Watchdog Login Page

After logging in, enter the dashboard to view gateway process status, running parameters, and real-time logs.

Watchdog Dashboard

Common Watchdog entry points are as follows.

PagePurpose
DashboardView gateway operating status, perform restart, stop, View Logs and Other Operations Actions
Project ManagementUpload Project Packages, Application Projects, Download or Delete Projects
View LogsQuery and Export Watchdog Runtime Logs
Backup ManagementCreating, Restoring, and Deleting Project Backups
Tunnel ManagementConfiguring Watchdog Tunnel Client
SettingsModify Account, Gateway Operation Parameters, Backup Policies, and Security Sources

Windows Service Deployment

Open PowerShell as an administrator and create the service based on the actual path.

sc.exe create "ThingsGateway Watchdog" binPath= "D:\ThingsGateway\WatchDog\ThingsGatewayRuntime.Watchdog.exe" start= auto DisplayName= "ThingsGateway Watchdog Service"
sc.exe create "ThingsGateway Studio" binPath= "D:\ThingsGateway\Studio\ThingsGatewayStudio.exe" start= auto DisplayName= "ThingsGateway Studio Service"

sc.exe start "ThingsGateway Watchdog"
sc.exe start "ThingsGateway Studio"

Linux Service Deployment

Example service file as follows. Please adjust according to the actual directory WorkingDirectory and ExecStart.

[Unit]
Description=ThingsGateway Runtime Watchdog Service
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/opt/ThingsGateway/WatchDog
ExecStart=/opt/ThingsGateway/WatchDog/ThingsGatewayRuntime.Watchdog
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Enable the service.

sudo systemctl daemon-reload
sudo systemctl enable thingsgateway
sudo systemctl start thingsgateway
sudo systemctl status thingsgateway

Studio and Watchdog Login Failure

IssuesHandling Suggestions
localhost can access but device IP cannotConfirm listening address is 0.0.0.0, remote management switch is enabled, and for normal HTTP, AllowInsecureRemoteHttp=true, and allow port 5100 or 6200.
Page prompts: Cannot read properties of undefined (reading 'importKey')The current frontend does not call subtle.importKey. Clear browser and proxy caches, republish the complete static resource, and confirm that the node-forge dynamic resource loaded at login returned 200.
Login prompts that the challenge is invalid or expiredRefresh the login page or resubmit it; the page will get a new challenge; The challenge expires in two minutes and can only be used once.
Watchdog logs in but then returns to the login pageChecks whether the service has just restarted and whether the session has lasted more than eight hours; Log in again to obtain new Bearer Tokens.
Studio shows Watchdog offlineaccessing http://<WatchdogIP>:6200 from Studio servers, then checking accounts, remote management switches, firewalls, and Watchdog logs.

Next Step