IMDTouchKnowledge BaseShop main store

Troubleshooting

Why WinCC RT Advanced OPC UA server won't start

HMI and touchscreens Published 6 min read By IMDTouch engineering team

Short answer

A WinCC RT Advanced project that compiles and starts can still have no OPC UA server: verify Operate as OPC server and the OPC Unified Architecture Server setting, then count listeners on the configured UA port with netstat and look for Miniweb.exe in Task Manager. Settings correct with no listener means the component is missing: repair the TIA Portal installation from its own media, restart Runtime, and recheck. No firewall or certificate change can fix a listener that does not exist.

On this page
  1. A running HMI is not a running OPC UA server
  2. Why working OPC DA proves nothing about OPC UA
  3. Tracing the missing port 4870 listener on a V15.1 runtime PC
  4. Repairing the installation that lost the OPC UA component
  5. Acceptance checks after the repair
  6. Questions asked

A WinCC RT Advanced project that compiles and starts can still have no OPC UA server behind it. In the documented case — TIA Portal V15.1 on an industrial box PC, Operate as OPC server and OPC Unified Architecture Server both enabled, a port and security policy set — the HMI ran, OPC DA served variables normally, and still Nmap showed the UA port closed, netstat showed no listener, no server process appeared in Task Manager, and a UA test client failed from the same PC with the firewall off. A rebuilt project failed identically. The OPC UA component itself was missing or damaged in the installation; repairing the TIA Portal installation from its own media and restarting Runtime brought the server back alongside the HMI.

A running HMI is not a running OPC UA server #

An OPC UA client connects to an endpoint, an opc.tcp:// address built from the runtime PC's address and the port configured in the runtime settings, and only then negotiates the secure channel, certificates and session. Every stage after the first needs a socket in the LISTENING state to exist on the runtime PC; without it, the conversation never reaches security at all.

The readme for WinCC Runtime Advanced lists the OPC UA server as an inbound TCP service on port 4870, separate from the HMI Load service on port 5001. The project enables that server with two switches in the runtime settings of the HMI device: Operate as OPC server, and OPC Unified Architecture Server under the OPC settings, where the port and the security policy are set. A started server shows exactly one LISTENING socket on 4870, owned by Miniweb.exe — the process that also serves the runtime's file browser and log pages, described in WinCC RT Advanced Miniweb file browser access and log files. When Runtime is running and that socket and process are both absent, the server component did not start, and there is nothing for a client, a firewall rule or a certificate check to reach.

Why working OPC DA proves nothing about OPC UA #

OPC DA and OPC UA run as different server components on different communication stacks, so one working does not test the other. In the documented case the DA side was perfect: the DA server started, variables were readable, and a "Simatic OPC" process sat in Task Manager. Turning DA off and UA on took the access away, while the Simatic OPC process stayed visible — a process name alone does not tell you which endpoint is alive. What DA success does establish is that the runtime, the project and the controller link are healthy; it says nothing about the UA listener, its startup dependencies or its endpoint configuration.

The case rules out the network path as well. The firewall was off and a UA client failed from the runtime PC itself, so routing, addressing and firewall rules never came into play. A firewall filters a listener that already exists and cannot create one, so no rule change helps a server that never opened its socket. Test the endpoint locally first, and when you do open the port for remote clients, add a specific inbound rule for the UA port and put the firewall back in service — a permanently open industrial PC invites the rest of the plant network.

Tracing the missing port 4870 listener on a V15.1 runtime PC #

The reported case: TIA Portal V15.1 with WinCC RT Advanced as the runtime, both server switches enabled, a port and security policy configured, and a UA test client, UaExpert, failing from the runtime PC and from a second PC.

Inputs and sources.

  • Configured UA port: 4870, the default, read from the OPC settings of the runtime settings and confirmed by the vendor documentation.
  • Required listener count: 1, the single inbound OPC UA service the readme defines.
  • Expected owning process: Miniweb.exe, the process a healthy start shows.
  • Observations: netstat output and a Task Manager scan from the runtime PC, an Nmap scan reporting the port closed, and local and remote UaExpert attempts with the firewall off — all from the reported case.

Rule. A started OPC UA server holds one TCP socket in the LISTENING state on its configured port, and netstat lists every listening socket with the process identifier that owns it. Count the entries for the port on the runtime PC with netstat -ano | findstr :4870.

Arithmetic. Required listener count 1, observed 0: no LISTENING line for 4870 appears at all, so the shortfall is 1 - 0 = 1 socket and the failure sits before any binding question — a socket bound only to the loopback address would still count 1 and point to endpoint binding instead. The three independent observations agree on the same count: Nmap reports 0 open, the local client fails with the firewall off, and Task Manager shows no owning process.

Result. The UA server never started on that PC, while OPC DA and its process kept running. A second project, built step by step from the vendor's OPC UA application example, failed the same way at the connection step, which moves the fault from the project to the shared installation.

Decision. Verified settings, healthy DA, zero listeners, no owning process: the OPC UA component is missing or damaged in the installed software. Repair the TIA Portal installation from the media that matches the installed version — V15.1 media with the Repair option in this case. No firewall, certificate or security-policy change applies before a listener exists, so spend no time there.

Repairing the installation that lost the OPC UA component #

Repair reinstalls and restores the installed program components; project files stay in their project directories. Run it from the installation media or installer that matches the version actually installed — V15.1 media for a V15.1 installation here.

  1. Save the project and note the configured UA port and security policy, so the state after the repair matches the state before it.
  2. Stop Runtime and close TIA Portal.
  3. Run the installer from the matching installation media and choose the Repair option; accept any restart it requests.
  4. Start the project again with Start Runtime on the PC, keeping the same port and policy so the repair is the only change.
  5. Check Task Manager for Miniweb.exe while Runtime runs, repeat the netstat count, and connect the UA test client from the runtime PC itself.

In the documented case the server returned immediately: Miniweb.exe appeared with Runtime, and the endpoint answered clients that had failed before the repair. The repair restores the component and changes no setting you configured, which is why the same port and policy pass after the repair where they failed before it.

Acceptance checks after the repair #

Work down the checks in order and stop at the first failure, because each stage only means something when the one before it passed.

  • Runtime launch: the HMI opens, and Miniweb.exe runs while it does.
  • Listener: the netstat count returns exactly one LISTENING entry for the UA port, owned by that process.
  • Local session: a UA test client on the runtime PC opens a session against the configured endpoint. The first connection triggers the certificate exchange the configured security policy calls for; a certificate or trust rejection there means the TCP stage has passed and you have reached a different failure, the one described for the OPC UA certificate trust loop on a Unified Comfort panel.
  • Remote session: with the inbound rule for the UA port in service in the firewall, connect from the client PC.
  • Data check: browse the address space and read a live tag, confirming the server exposes the project's variables.

Questions asked

Which process shows in Task Manager when the WinCC RT Advanced OPC UA server starts?

Miniweb.exe should appear when Runtime launches with the OPC UA server enabled. To tie it to the network side, add the PID column on the Details tab and match it to the process identifier netstat reports for the listening socket on the configured UA port. If the process is missing while both server settings are enabled, the component did not start, and the fault sits in the installation rather than the project.

Does the TIA Portal repair option affect existing projects?

Repair reinstalls or restores program components and leaves your project files in their project directories. Close Runtime and TIA Portal first, and keep a current backup copy of the project as ordinary practice before any installer run. Afterward, compile and start the project with the same OPC UA port and security policy so the repair is the only change between the failing and the working state.

Can a firewall or antivirus block the OPC UA server from starting?

A firewall filters traffic to a socket that already exists; it cannot remove a listener or stop a process from opening one. With no listener on the configured port and the firewall already off, firewall rules are ruled out, as they were in the documented case. Security software that prevents processes from launching is a separate question, but the documented cause was a damaged installation, and the repair restored the server.

Does this fix apply to other TIA Portal versions?

The repair option exists in every TIA Portal installation; run it from the installer or media that matches the version actually installed, exactly as the documented fix used V15.1 media on a V15.1 installation. The diagnostic sequence — verify the two server settings, count listeners on the configured UA port, check for the server process — is version independent, and the default UA port is the same across the versions the vendor documents for these runtimes.

Keep reading

  • Explainer

    Why WinCC Runtime Advanced reaches an FX5U only through OPC

    WinCC Runtime Advanced has no Mitsubishi driver, so an FX5U is reached in two legs: an OPC server reads the PLC and Runtime Advanced connects as an OPC client. The deciding check is that the server's exact interface, OPC DA or OPC UA, is one the installed Runtime release supports; the FX5-OPC CPU module serves UA only.

    HMI and touchscreens

  • Explainer

    Unified Comfort panel OPC UA client and server roles in V17

    From V17, a Unified Comfort Panel offers both an OPC UA server and an OPC UA Data Access client, so it exchanges process data with a third-party controller in either direction. Each connection pairs one server endpoint with one client; two clients cannot talk to each other. Unified PC Runtime adds the connection to OPC UA servers in V17; pick the panel's role from what the controller's specification says it provides.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC V15 runtime shows gray OPC UA tag values

    A gray field with a yellow warning symbol means the runtime tag carries bad quality, so WinCC V15 has no usable value for it. Diagnose three separate levels — engineering browsing, channel activity, per-tag acquisition — by reading the quality code, the OPC UA channel log and the rejected certificate folder, then compare endpoint, security and identity against an independent client. In the reported case, setting the server's IP address instead of its hostname in the server configuration restored values.

    HMI and touchscreens

When Operator Terminal Expert v3.2 won't open