Running realvirtual as a Server
You can run realvirtual as a server: the HMI, the CONNECT gateway and, if you want them, a project repository and a signal history behind one address with one login. Panel PCs, tablets and workstations then open the twin in a browser, with nothing to install on them.
This page uses the older name “appliance” for the scripted variant of this setup. It describes three ways to operate it, a reference stack that we propose, and the building blocks you can replace with what your IT already runs.
Three ways to operate it
Section titled “Three ways to operate it”| At the machine | Localhost | Company server | |
|---|---|---|---|
| Who uses it | Operators at the machine panel and people in the cell or plant network | One person on one PC, such as an engineer or a single-seat operator station | Everyone in the company network, or beyond it if your IT allows it |
| What runs where | A panel PC, IPC or small box next to the machine runs the HMI files and CONNECT | CONNECT and the HMI on the same PC | A server in a data centre or cloud, for example Windows Server with IIS, serves the HMI. CONNECT runs where it can reach the machine network. |
| Address | https://<hostname>/ on the plant network | http://localhost, or http://localhost:5100 served by CONNECT | https://<server name>/ |
| HTTPS and certificates | Needed for the full feature set, with a certificate your devices trust | Not needed: localhost is a secure context | Required. Use a certificate from your site PKI or a public one. |
| Login and access rules | One login at the proxy. Restrict the gateway port to the host. | The local machine is let in without a key | Matter most. Authentication, TLS and an API key are your job, see Remote access and security. |
| Reference stack applies | Fully | Not needed | Selected blocks, often replaced by IIS, Azure DevOps and your own PKI |
At the machine
Section titled “At the machine”A server next to or inside the machine serves the HMI to the machine panel and to devices in the cell or plant network. This is the case the rest of this page describes in detail, because the operator has no cloud and no IT department in the loop: a static address, a trusted certificate, one login in front of everything, and an optional kiosk panel.
Localhost
Section titled “Localhost”On one PC, CONNECT and the HMI run together and you open http://localhost. A build of CONNECT with an embedded project serves the viewer itself on http://localhost:5100. localhost is a secure context, so encrypted projects, the password gate and copy buttons work without any certificate. No proxy, repository or history is needed. This is the quickest start and the right choice for an engineering laptop.
Company server
Section titled “Company server”You or your IT host the viewer on a server in the data centre or in the cloud, for example Windows Server with IIS, and people reach it over HTTPS from the company network or beyond. realvirtual does not host productive machine endpoints for you by default.
For this variant, the access side matters most:
- HTTPS with a certificate the browsers trust, ideally from your site PKI.
- Authentication in front of the site. IIS serves the files to everyone who can reach it unless you switch authentication on.
- Gateway access rules. CONNECT does not terminate TLS itself. It sits behind a reverse proxy, and you set an API key and
TrustedProxies. See Remote access and security. - Licence. A viewer that serves others needs a deployment licence, see Licensing the viewer.
- Exposure. Publishing to the internet instead of the company network is a separate decision for your IT.
Our stack is a proposal, not a requirement
Section titled “Our stack is a proposal, not a requirement”The scripted open-source stack described further down (reverse proxy, Forgejo and InfluxDB in Docker, CONNECT native) is our reference implementation. It is one way to fill the building blocks. Each block can be replaced by what your IT already runs, such as Microsoft IIS or Azure DevOps, depending on your requirements.
Building blocks and alternatives
Section titled “Building blocks and alternatives”The viewer is a folder of static files, a project is a folder with project.json and GLB files, and CONNECT is one gateway process. That keeps the requirements on the surrounding infrastructure small:
- A web server that serves the static files on one address.
- Same-origin access to CONNECT. The browser reaches the gateway under
/connect/*on the same address, including the WebSocket upgrade. In the reference stack the proxy removes the/connectprefix and passes the rest to the gateway. - HTTPS with a certificate the devices trust.
- A place for projects. Any Git server will do.
- Optionally an InfluxDB 2.x for the signal history.
| Building block | Our reference | Common alternatives |
|---|---|---|
| Web server and reverse proxy | Reverse proxy in a container (WSL2 on Windows, Docker on Linux) | Microsoft IIS: the static site, plus URL Rewrite and Application Request Routing to forward /connect/* including the WebSocket upgrade to CONNECT. Also nginx or Apache. |
| Project repository | Forgejo | Azure DevOps (Server or Services) Git repos, GitHub Enterprise, GitLab. Any Git server works. |
| Build and update of the HMI | Import of a built release archive | An Azure DevOps pipeline that builds the viewer and copies the files to the web server |
| Signal history | InfluxDB 2.x in a container | InfluxDB 2.x on a server you already run. CONNECT records to InfluxDB 2.x only, see Data recording. |
| Certificates | Internal certificate authority of the reference stack | Your site’s own PKI. The devices already trust it. |
| Hosting | One dedicated machine | A VM or server of your IT. CONNECT runs as the Windows tray application, or on Linux under systemd. |
Why HTTPS matters
Section titled “Why HTTPS matters”The first IIS installation we saw served the HMI over plain http://<hostname>/. Projects open and the live connection works there. Everything that needs a browser secure context does not work: encrypted projects and signature checks, the password gate, copy buttons and VR/AR. Serve the HMI over HTTPS, for example with an IIS binding and a certificate from your site PKI.
The reference stack
Section titled “The reference stack”Everything from here on describes the reference stack, our scripted installer. If you run IIS and Azure DevOps instead, read it as a list of things your own setup has to cover.
What sits behind the address
Section titled “What sits behind the address”A single reverse proxy is the only ingress. One TLS configuration, one login, and for the browser everything is same-origin.
| Address | What answers | Where it runs |
|---|---|---|
/ | The HMI, realvirtual | Static files from the active release |
/appliance/ | Service dashboard, four status tiles | Static, no backend |
/connect/* | realvirtual CONNECT gateway | Natively on the host, not in a container |
/git/* | Forgejo, project repository and long-term archive | Container |
/influx/health, /influx/api/v2/* | InfluxDB health and API | Container |
https://influx.<host>/ | The InfluxDB operating interface | Container, own subdomain |
CONNECT runs outside the containers to retain fieldbus access, UDP broadcast discovery and, on Windows, its tray and self-update. Running it in a container would lose these features without adding a benefit.
The InfluxDB interface needs its own subdomain
Section titled “The InfluxDB interface needs its own subdomain”Every route above is same-origin except one. The InfluxDB 2 operating interface does not support a subpath. It ships <base href="/"> and requests its bundle at the origin root, where the HMI answers with HTML instead. InfluxDB has no base-path option to fix this. Health checks do not reveal the failure; the interface stays blank. This applies to any setup that puts InfluxDB 2 behind a path of the HMI’s address.
It therefore lives on influx.<host>, a subdomain of its own. The health and API routes under /influx/ are unaffected and stay same-origin.
Two topologies
Section titled “Two topologies”The installer uses scripts rather than an .exe or an MSI. You can audit the scripts, and both topologies use the same Linux code path.
Windows with CONNECT native
Section titled “Windows with CONNECT native”The standard form: one Windows box. CONNECT runs natively on Windows, at the OT network, with its tray and its self-update. Everything else (proxy, repository, history) runs as Docker containers inside a WSL2 distribution. It uses Docker Engine, not Docker Desktop, so no Docker licence question arises at your site.
Two scheduled tasks start the distribution and CONNECT at system start, so the box comes up after a power cut without anyone logging in.
Linux with systemd
Section titled “Linux with systemd”On Linux, CONNECT runs as a hardened systemd unit alongside the containers on the same host. There are no WSL-specific networking modes, Hyper-V firewall or changing VM address to manage.
Both topologies restrict the gateway port to the loopback address and the host’s own address. Never to the local subnet, never to any address.
Windows 11 22H2 or newer (reference stack)
Section titled “Windows 11 22H2 or newer (reference stack)”The Windows topology requires Windows 11 version 22H2 or newer, build 22621 or higher.
It needs mirrored networking mode in WSL2. Without it, a container cannot reach the gateway on the host. In NAT mode, the Hyper-V firewall blocks the path, and no Defender rule opens it. Testing confirmed this limitation. Windows 10 and older Windows 11 builds are unsupported. Use a different machine or the Linux topology.
You can check in a normal PowerShell before you plan anything:
(Get-CimInstance Win32_OperatingSystem).BuildNumber # must be >= 22621(Get-CimInstance Win32_ComputerSystem).HypervisorPresent # must be TrueThe installer refuses to run on a system that is not clean (reference stack)
Section titled “The installer refuses to run on a system that is not clean (reference stack)”The scripted installer targets a dedicated machine. If it finds any of the following, it stops before it changes anything:
| What it finds | Why it stops |
|---|---|
| An existing WSL distribution | Someone set that up deliberately. The installer overwrites nothing. |
| Docker already present, including installed and stopped | Docker Desktop is the most likely find on a company machine. It brings its own WSL distributions and its own network configuration; someone starting it months later collides with the installation, and nobody will see the connection. |
An existing .wslconfig | Same rule: the file holds someone’s settings. |
| Hardware virtualization disabled | No WSL2 at all. |
| Ports 80, 443 or 5100 in use | The proxy and the gateway need them. |
There is no switch to skip this check. A partially migrated installation is not supported.
A preflight run lists every finding at once and changes nothing, so you can check a candidate machine before you schedule the work.
The host address must be static (reference stack)
Section titled “The host address must be static (reference stack)”The container network configuration and the firewall rule each store the host address independently. An address change takes the stack down. Nothing automatically detects and repairs the mismatch.
The installer therefore refuses a DHCP-assigned address. Give the machine a static address, or pass a documented DHCP reservation as an explicit argument with the reference to your IT ticket.
What you need before you start (reference stack)
Section titled “What you need before you start (reference stack)”Windows
Section titled “Windows”- Windows 11 22H2 or newer (build 22621+), 64-bit
- Hardware virtualization enabled in BIOS/UEFI
- A machine with no WSL distribution, no Docker and no
.wslconfig - A static IPv4 address, or a documented DHCP reservation
- Ports 80, 443 and 5100 free
- Administrator rights, and a reboot slot, because enabling the Windows features requires one
- Network access during installation: the WSL distribution, the Docker Engine and CONNECT are downloaded
- 64-bit Linux with root access
- Docker Engine 24 or newer with Compose v2
- At least 20 GB free disk space
openssland a correct system clock- A static address, ports 80 and 443 free
In both cases
Section titled “In both cases”A built HMI release, as an archive, to seed the stack with. Without it the stack starts and says so clearly, but / has nothing to serve. Importing a release keeps the previous one in place, so a rollback is a symlink switch.
Trusting the server: the root CA
Section titled “Trusting the server: the root CA”Any server that serves HTTPS needs a certificate that every device trusts. The reference stack uses its own internal certificate authority by default, because a plant network has no public DNS name and no internet, so a public certificate is not available.
When you open the HMI from another device, plain HTTP is an insecure context. The viewer then loses encrypted persistence and the password gate, the CAD and GLB cache digest, copy buttons and VR/AR. localhost counts as a secure origin, so a single-seat PC works over HTTP. A panel PC or tablet in the plant network does not.
Three things to plan for per device:
- Windows takes about two minutes and is scriptable by group policy.
- Firefox keeps its own certificate store and does not use the Windows one.
- iPadOS needs a second step after the profile is installed: Settings › General › About › Certificate Trust Settings. This is the single most common support case.
If your site has its own PKI, use it. Configure the proxy or IIS with a certificate from your authority. The devices already trust it, so they need no certificate setup.
Access protection
Section titled “Access protection”In the reference stack, authentication happens at the reverse proxy, in front of everything. Every route is covered: the HMI, the dashboard, the repository, the history, the gateway, and the WebSocket upgrade. Without credentials you get 401 everywhere, and nothing reaches the services behind the proxy.
There are two accounts. One is for people. Its password is printed exactly once, at the end of installation, and is stored nowhere. The other is a machine account used by the health check and test scripts.
The origin credentials are never passed through to CONNECT. The reference proxy strips the authorization header and injects the gateway’s API key behind it, so the browser never sees the key.
Two more points about login:
- There is no login rate limiting. Basic authentication does not slow down guessing. The stack sits in the plant network behind the firewall rule that restricts the gateway port, and that is the whole of the protection against a determined attempt from inside the network.
- Failed logins are indistinguishable. A wrong password and an unknown user produce the same response, byte for byte, and the response names none of the services behind the proxy.
Kiosk: what the panel shows when it is switched on
Section titled “Kiosk: what the panel shows when it is switched on”A server at the machine usually feeds a panel next to it, with no keyboard, browser controls or person to operate it. The panel boots directly into one document, without offering a document choice or allowing navigation away from it. This works with any hosting, not only the reference stack.
Two settings carry that:
| Setting | What it does |
|---|---|
| Start document | The document the served project manifest declares. That is the document the panel comes up with. |
| Mode lock | Locks the deployment to one workspace, typically the machine-information view. The workspace selector disappears; deep links that would switch workspace are ignored. |
The start document comes from the project’s manifest, not a global setting. The server serves exactly one project, which names its own entry point. If the project has a single document and the deployment is mode-locked, the project list is also hidden.
Removing the mode lock is how a box is unlocked for commissioning. The full range of ways to open a document, deep links included, applies again from that point.
When a kiosk boot lands on nothing
Section titled “When a kiosk boot lands on nothing”A blank unattended panel gives no indication of the fault. If a kiosk cannot resolve a document at startup, it reports the reason on screen instead of opening something else:
| What went wrong | What it means |
|---|---|
| No manifest | The address the panel was pointed at served no project.json, typically a 404, a 500, or a file that could not be parsed |
| No documents | The manifest was read, but it lists no documents |
| No start document | The manifest lists documents but names none of them as the one to start with |
| Start document missing | The named start document is not among the documents the manifest lists |
All four are configuration faults in the delivered project, and all four are fixed on the project rather than on the server.
Updates
Section titled “Updates”There are three independent things to update, and they use different channels:
- The HMI release. In the reference stack you import a built release archive. The previous release stays in place, so a rollback is a switch back. With IIS and Azure DevOps, a pipeline builds the viewer and copies the files to the web server.
- Projects. A project is a folder with
project.jsonand GLB files in a Git repository. Pushing a new commit keeps the full history of every version. - CONNECT. The gateway replaces its own program file after you confirm a specific build in the viewer. It verifies the build, restarts, checks its health and rolls back if that fails. See Updates.
Long-term availability
Section titled “Long-term availability”For machines placed on the EU market, Regulation (EU) 2023/1230 applies from 20 January 2027 and expects digital documentation to stay available for years, with download, print and offline storage. realvirtual does not host productive machine endpoints by default: you or your IT host the server, and you decide how long it stays available. A server with its own repository, an archived release and a recorded version is a good base for that. It does not establish compliance by itself. See Frozen delivery and EU availability.
What your IT needs to know
Section titled “What your IT needs to know”- One address. Give the server a static address or a name in the plant network. The reference stack refuses a DHCP address.
- Ports. The reference stack needs ports 80, 443 and 5100 free on the host and publishes HTTPS to the network. The gateway port stays restricted to the host itself.
- Certificates. Devices must trust the server certificate. Your own PKI saves the per-device setup.
- Access. Everyone who gets past the login can do everything CONNECT can do. Restrict who may reach the address.
- Backup. Repository, signal history and the certificate authority are yours to back up, see below.
- No cloud. Operation of the reference stack needs no internet, cloud account or external DNS.
Backup and restore are the operator’s job
Section titled “Backup and restore are the operator’s job”The server keeps state that you must be able to recover: the project repository and long-term archive, the signal history and, with the internal CA, the certificate authority. The reference stack keeps them in three volumes. It has no backup or restore function for them; uninstalling leaves them in place, so reinstalling preserves their contents, but nothing recovers lost volumes.
Backup of the repository, the history and the CA is therefore the operator’s responsibility. With an IIS and Azure DevOps setup, your existing backup regime covers the repositories and the history database. With the reference stack, take a snapshot at the virtualization layer before anything risky and include the volumes in your own backup.
See also
Section titled “See also”- Deployment options: the static hosting forms, and when each one fits
- CONNECT overview: the gateway that runs next to the machine network
- Remote access and security: the access rule, API key and reverse-proxy TLS of the gateway itself
- Data recording: what the signal history stores and how it is queried
- Licensing the viewer: which licence a delivered twin needs