Skip to content

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.

At the machineLocalhostCompany server
Who uses itOperators at the machine panel and people in the cell or plant networkOne person on one PC, such as an engineer or a single-seat operator stationEveryone in the company network, or beyond it if your IT allows it
What runs whereA panel PC, IPC or small box next to the machine runs the HMI files and CONNECTCONNECT and the HMI on the same PCA 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.
Addresshttps://<hostname>/ on the plant networkhttp://localhost, or http://localhost:5100 served by CONNECThttps://<server name>/
HTTPS and certificatesNeeded for the full feature set, with a certificate your devices trustNot needed: localhost is a secure contextRequired. Use a certificate from your site PKI or a public one.
Login and access rulesOne login at the proxy. Restrict the gateway port to the host.The local machine is let in without a keyMatter most. Authentication, TLS and an API key are your job, see Remote access and security.
Reference stack appliesFullyNot neededSelected blocks, often replaced by IIS, Azure DevOps and your own PKI
Three ways to operate realvirtual as a server Three columns with network zones. At the machine: panel PCs, tablets and workstations in the cell or plant network open the HMI over HTTPS from a server at the machine, which runs the HMI files, the proxy and CONNECT; CONNECT talks the PLC protocol to the PLC. Localhost: a browser on the same PC opens http localhost, the PC runs the HMI and CONNECT, and CONNECT talks to the PLC. Company server: browsers in the company network or on the internet open the HMI over HTTPS from a server in a data centre or cloud, which forwards the gateway route over plain HTTP to CONNECT in the plant network, where CONNECT talks to the PLC. At the machine Localhost Company server cell / plant network panel PC, tablet, office workstation HTTPS Server at the machine HMI files + proxy CONNECT, same host one address, one login PLC protocol PLC / machine OT side one PC browser on the same PC localhost HMI + CONNECT http://localhost secure context, no certificate PLC protocol PLC (optional) or the built-in simulation company network or internet browsers office, remote HTTPS data centre or cloud Company server HMI files, e.g. IIS TLS, login, proxy HTTP plant network CONNECT PLC / machine

Accent arrows are HTTPS. In all three, the browser only ever talks to the HMI address; CONNECT sits next to the machine network. Company server: CONNECT stays where it can reach the PLC, and only the proxy may reach it (plain HTTP behind the proxy).

Three places to run the same viewer and the same gateway: at the machine, on one PC, or on a company server.

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.

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.

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.

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 /connect prefix 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 blockOur referenceCommon alternatives
Web server and reverse proxyReverse 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 repositoryForgejoAzure DevOps (Server or Services) Git repos, GitHub Enterprise, GitLab. Any Git server works.
Build and update of the HMIImport of a built release archiveAn Azure DevOps pipeline that builds the viewer and copies the files to the web server
Signal historyInfluxDB 2.x in a containerInfluxDB 2.x on a server you already run. CONNECT records to InfluxDB 2.x only, see Data recording.
CertificatesInternal certificate authority of the reference stackYour site’s own PKI. The devices already trust it.
HostingOne dedicated machineA VM or server of your IT. CONNECT runs as the Windows tray application, or on Linux under systemd.
Reference stack and a customer IT stack side by side Six roles, filled twice. Web server and proxy: a reverse proxy in a container, or Microsoft IIS. Project repository: Forgejo, or Azure DevOps Git repositories. HMI build and update: import of a release archive, or an Azure DevOps pipeline. Signal history: InfluxDB 2 in a container, or InfluxDB 2 on an existing server. Certificates: the internal certificate authority of the reference stack, or the site PKI. Gateway: realvirtual CONNECT in both. Reference stack Customer IT stack Role

Web server, proxy reverse proxy in a container Microsoft IIS (nginx, Apache)

Project repository Forgejo Azure DevOps Git (or any Git server)

HMI build, update import of a release archive Azure DevOps pipeline

Signal history InfluxDB 2 in a container InfluxDB 2 on a server you run

Certificates internal CA of the stack site PKI, trusted by devices

Gateway CONNECT, native (tray or systemd) CONNECT, same gateway

Same roles, same static viewer, same CONNECT. Only the building blocks around them differ.
Each role of the reference stack can be filled by what your IT already runs.

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.

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.

A single reverse proxy is the only ingress. One TLS configuration, one login, and for the browser everything is same-origin.

AddressWhat answersWhere it runs
/The HMI, realvirtualStatic files from the active release
/appliance/Service dashboard, four status tilesStatic, no backend
/connect/*realvirtual CONNECT gatewayNatively on the host, not in a container
/git/*Forgejo, project repository and long-term archiveContainer
/influx/health, /influx/api/v2/*InfluxDB health and APIContainer
https://influx.<host>/The InfluxDB operating interfaceContainer, own subdomain
Reference stack topology: one address, four services Panel PCs, tablets and workstations in the plant network reach one reverse proxy over HTTPS with one login. The proxy routes to the HMI and the service dashboard as static files, to the realvirtual CONNECT gateway running natively on the host, and to the Forgejo repository and InfluxDB running as containers. The InfluxDB operating interface is served from its own subdomain. Plant network panel PC tablet office workstation root CA trusted HTTPS Reverse proxy only ingress one TLS setup one login same-origin static files and the native gateway /HMI, static files /appliance/dashboard, static /connect/*CONNECT, native, not in a container Docker containers /git/*Forgejo, projects and archive /influx/api/v2/*InfluxDB health and API influx.<host>InfluxDB interface, own subdomain No internet, cloud account or external DNS needed.
The reference stack: one address in front, four services behind it. The InfluxDB interface is the only route that needs a subdomain of its own.

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.

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.

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.

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:

Terminal window
(Get-CimInstance Win32_OperatingSystem).BuildNumber # must be >= 22621
(Get-CimInstance Win32_ComputerSystem).HypervisorPresent # must be True

The 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 findsWhy it stops
An existing WSL distributionSomeone set that up deliberately. The installer overwrites nothing.
Docker already present, including installed and stoppedDocker 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 .wslconfigSame rule: the file holds someone’s settings.
Hardware virtualization disabledNo WSL2 at all.
Ports 80, 443 or 5100 in useThe 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 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
  • openssl and a correct system clock
  • A static address, ports 80 and 443 free

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.

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.

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:

SettingWhat it does
Start documentThe document the served project manifest declares. That is the document the panel comes up with.
Mode lockLocks 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.

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 wrongWhat it means
No manifestThe address the panel was pointed at served no project.json, typically a 404, a 500, or a file that could not be parsed
No documentsThe manifest was read, but it lists no documents
No start documentThe manifest lists documents but names none of them as the one to start with
Start document missingThe 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.

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.json and 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.
Three independent update channels Three rows. HMI release: a built release archive is imported on the server, the previous release stays in place for rollback. Projects: the project folder is pushed to the Git repository, which keeps the history. CONNECT: you confirm a build in the viewer, the gateway downloads and verifies it, restarts, checks its health and rolls back if that fails. HMI release built HMI releaseas an archive import on the servernew release goes live previous release keptrollback: switch back

Projects project folderproject.json + GLBs git pushby whoever edits Git repositoryhistory of every version

CONNECT you confirm a buildin the viewer download, verifyhash and signature restart, health checkrollback on failure

The three channels do not depend on each other. CONNECT never updates silently.

Viewer content, projects and the gateway are updated separately.

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.

  • 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.