Fixing TIA Portal V17 Error in Lower-Level Component via Firewall

David Krause18 min read
SiemensTIA PortalTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Fixing TIA Portal V17 'Error in Lower-Level Component' via Windows Defender Firewall Configuration

The Siemens TIA Portal V17 error string "Error in lower-level component" (German: "Fehler in untergeordneter Komponente") is generated by the S7ONLINE / S7DOS online channel when the engineering station (PG/PC) can establish a TCP/UDP session with one automation device on the subnet (typically a SIMATIC HMI Comfort/ Unified panel on TCP 102 via the routing-capable HMI) but cannot complete the lower-layer S7 communication path to the downstream SIMATIC S7-1200, S7-1500, ET 200, or HMI station that sits behind it. The symptom is consistent and reproducible: a single panel responds to Online → Accessible devices, but every other CPU/CP on the plant LAN times out, even though the same project went online without modification a few days earlier.

The most common root cause in field reports since the release of TIA Portal V17 (and its Update 1 through Update 7) is a multi-homed routing failure caused by the Windows Defender Firewall with Advanced Security. Specifically, when the PG/PC holds two active interfaces at once (a corporate/intranet Wi-Fi adapter with a 10.x.x.x address, plus a service Ethernet/LAN adapter with a 192.168.x.x address that is wired to the machine), the firewall will silently drop the cross-interface UDP/TCP packets that TIA Portal uses for S7ONLINE access (ISO-on-TCP port 102, RFC 1006, plus the discovery broadcast on UDP 17476/17477/17478 used by Accessible devices). The TIA Portal online service stack reports this as a generic lower-level component error because the lower WinSock layer returned WSAECONNRESET or WSAETIMEDOUT rather than a Siemens-specific diagnostic.

Safety Notice: Disabling the Windows firewall is a workstation-level workaround. Do not propagate this change to plant-floor HMI panels or to the engineering server. Apply the fix only on the programming device (PG/PC) and validate against your site's IT policy. A more granular approach (creating inbound/outbound rules for the TIA Portal executables) is documented later in this article.

1. Environment and Configuration Snapshot

The failure is observed only on the PG/PC. The PLC, ET 200, and HMI firmware are not at fault. The relevant workstation configuration in the case that produced this article was:

Component Value Notes
TIA Portal version V17 (originally V15.1, V16, then V17 Update 1+) Problem appeared after installing V17 and running Windows/Microsoft cumulative updates.
SIMATIC software involved STEP 7 V17, WinCC V17, Startdrive V17, Safety V17 Any component that registers a S7ONLINE callback can trigger the dialog.
Operating system Windows 10 21H2 / 22H2, Windows 11 21H2+ Windows Defender Firewall is mandatory and cannot be uninstalled.
PG/PC interface 1 (Wi-Fi) 10.33.55.xx / 255.255.255.0 (static on intranet) or DHCP for guest/internet This is the interface the engineer uses for VPN, e-mail, and remote support.
PG/PC interface 2 (Ethernet/LAN) 192.168.10.200 / 255.255.255.0 (static) Wired service connection to the machine switch.
Machine LAN 192.168.10.0/24 with PLC 192.168.10.10, ET 200 192.168.10.20, HMI 192.168.10.50 All devices respond to ARP; ping is fully successful from the LAN adapter.
User account Local administrator on PG/PC Required to alter Windows Defender Firewall rules.

The critical trigger is the combination of two simultaneously active adapters. With only the LAN adapter active, all devices go online as expected. With only the Wi-Fi adapter active and a route added to the machine subnet, online access works partially or not at all. With both active, the firewall interposes its rule set and blocks the traffic that the S7 stack expects to be allowed.

2. Symptoms and Reproducible Failure Pattern

The error manifests with a deterministic pattern that matches a multi-homed firewall issue rather than a project, firmware, or cabling problem:

  1. TIA Portal opens the project without warning. Compile is clean.
  2. Online → Accessible devices enumerates the S7-1500 CPU, the ET 200 SP, and the Comfort Panel on the LAN subnet. Discovery broadcast traverses the firewall because the source and destination interfaces are both 192.168.10.0/24.
  3. Double-clicking the CPU opens the "Error in lower-level component" dialog. The same dialog is shown for the ET 200. The HMI always goes online without error.
  4. Switching the Wi-Fi adapter to the corporate intranet profile (10.33.55.xx, static) restores online access to all CPUs immediately, with no TIA Portal restart and no project change.
  5. Switching the Wi-Fi adapter back to the guest/internet profile (DHCP) re-introduces the failure within 30 seconds.

The HMI succeeds because TIA Portal performs a direct TCP/102 connection from the LAN adapter to 192.168.10.50, and the firewall treats same-interface traffic as allowed in all three profiles (Domain, Private, Public) by default. The CPU and ET 200 fail because the HMI panel acts as a router: TIA Portal attempts to traverse the HMI using ISO-on-TCP port 102 with a TSAP route, and the HMI forwards the S7 packet to the CPU/ET 200 using its own internal routing table. From the firewall's perspective, the incoming packet on the LAN adapter (192.168.10.200) is destined for 192.168.10.10, and the response comes back from 192.168.10.10 to the LAN adapter, so the session should be allowed. The actual block is on the discovery and keep-alive UDP traffic (ports 17476-17478) and on the inbound S7 connection when the firewall has classified the Wi-Fi profile as Public and the LAN profile as Private. Public profile blocks inbound connections to all local sockets by default, and Windows applies the strictest rule across all active profiles to any given flow.

In TIA Portal V17 the S7 communication stack is also used by the Startdrive commissioning wizard (SINAMICS V90, G120, S210). Motor commissioning will fail with the same dialog if the SINAMICS drive sits behind the same panel/HMI. Treat the firewall as the first checkpoint whenever "Error in lower-level component" appears during drive online access as well.

3. Root Cause Analysis

Three independent root causes have been observed in field reports and are worth distinguishing before applying the fix:

3.1 Windows Defender Firewall multi-homed block (most common, this article)

Windows Defender Firewall with Advanced Security inspects inbound traffic per profile (Domain, Private, Public). When the Wi-Fi adapter is connected to a network classified as Public (the default for guest, hotel, airport, and any non-domain SSID), the inbound S7 packet to the LAN adapter is evaluated against the union of all profile rules, and the strictest rule wins. Because Public profile denies inbound on TCP 102 by default, the S7 connection is dropped. TIA Portal's S7DOS layer translates the dropped connection into "Error in lower-level component."

3.2 Routing metric / binding order (secondary)

Windows selects the interface with the lowest routing metric for the destination subnet. If the Wi-Fi adapter publishes a default route with a lower metric than the LAN adapter's persistent route, the S7 stack will attempt to send ISO-on-TCP packets through the Wi-Fi adapter. The remote CPU never receives them. Verify with route print and with Get-NetIPInterface -InterfaceAlias "Wi-Fi" | Format-Table InterfaceMetric,InterfaceAlias,AddressFamily.

3.3 TIA Portal PG/PC interface assignment (rare)

When the Set PG/PC Interface tool (S7EPARAD / PC Internal) was changed during the V17 install, the S7DOS interface may be bound to a virtual adapter that no longer exists after a Windows cumulative update. Re-selecting the Intel/Realtek Ethernet adapter in Set PG/PC Interface → S7ONLINE (STEP7) → <your LAN adapter> clears the binding. The corresponding tool is documented in the TIA Portal V17 Installation Manual.

4. TIA Portal V17 Online Communication Architecture

To understand why the firewall fix works, the layered communication model used by TIA Portal must be visible. TIA Portal does not use a single socket for an online session; it uses a stack of three or four concurrent flows:

Layer Protocol Port Purpose Direction
Discovery UDP broadcast / multicast 17476, 17477, 17478 Online → Accessible devices, project view, topology detection Bidirectional, broadcast on the LAN
Online S7 ISO-on-TCP (RFC 1006) on TCP 102 S7 communication: read/write, block services, diagnostics, firmware update Bidirectional, point-to-point
Routing (HMI as router) ISO-on-TCP with TSAP 102 Cross-subnet S7 routing through a CP or HMI panel Bidirectional through the routing device
HMI web / Sm@rtServer TCP 80, 443, 1024-1030 (configurable) Sm@rtServer remote view, web-based panel access Bidirectional
OPC UA (TIA V17 optional) TCP 4840 (default), 49152+ for discovery OPC UA server on the CPU Bidirectional
ProDiag / Trace TCP 102 + TLS Trace, ProDiag, project history Bidirectional

The firewall must allow the Siemens automation family of programs to bind to all of the above ports. When the firewall is left at default, only the discovery flow (UDP broadcast on the same subnet) and a single TCP/102 session to a directly reachable HMI succeed. The routing session fails because the firewall sees the response coming from a different source IP than the request's destination IP (NAT/route asymmetry introduced by the HMI's routing function) and applies the strict Public profile rule.

5. Solution: Configuring Windows Defender Firewall for TIA Portal V17

Two valid solutions exist. The first is the field-proven fast fix that resolves the dialog in under two minutes. The second is the IT-compliant, granular fix that opens only the ports and executables that TIA Portal needs.

5.1 Fast fix: disable the firewall on the PG/PC

This is the configuration that solved the case in the field. It is acceptable on a single engineering laptop that is not a domain-joined asset handling sensitive data, and it must be reverted before the laptop is reconnected to a corporate LAN that is governed by policy.

  1. Press Win + R, type wf.msc, press Enter. The Windows Defender Firewall with Advanced Security MMC snap-in opens.
  2. In the right-hand Actions pane, click Windows Defender Firewall Properties.
  3. On the Domain Profile tab, set Firewall state to Off. Click Apply.
  4. On the Private Profile tab, set Firewall state to Off. Click Apply.
  5. On the Public Profile tab, set Firewall state to Off. Click Apply.
  6. Click OK to close the properties dialog.
  7. Close wf.msc.
  8. Return to TIA Portal. Without restarting, click Online → Accessible devices. The CPU and ET 200 should now respond.

Equivalent PowerShell (run as Administrator):

Set-NetFirewallProfile -Profile Domain,Private,Public -Enabled False
Get-NetFirewallProfile | Format-Table Name,Enabled

To re-enable the firewall after the maintenance window:

Set-NetFirewallProfile -Profile Domain,Private,Public -Enabled True

5.2 Granular fix: scoped firewall rules (recommended for production PG/PCs)

This is the configuration that Siemens documentation and most IT departments will accept. The firewall stays on; only the rules required by the Siemens automation software family are opened.

  1. Open wf.msc as Administrator.
  2. Create an Inbound Rule for TCP port 102 (ISO-on-TCP / S7 communication) scoped to the machine LAN subnet (192.168.10.0/24). Action: Allow the connection. Profiles: Domain, Private, Public.
  3. Create an Inbound Rule for UDP ports 17476-17478 (TIA Portal discovery). Action: Allow the connection. Profiles: Domain, Private.
  4. Create a Program rule for %ProgramFiles%\Siemens\Automation\Portal V17\TIAPortal.exe with action Allow.
  5. Create a Program rule for %ProgramFiles%\Siemens\Automation\Portal V17\S7ONLINE\S7OUCSC.exe (or the V17 equivalent Siemens.Automation.Portal.exe) with action Allow.
  6. Create a Program rule for %ProgramFiles%\Siemens\Automation\Portal V17\PnopCom.exe (Startdrive) and ScsCom.exe (SINAMICS).
  7. Repeat for outbound direction if your Windows Defender Firewall outbound rules are not in Allow default mode (Windows default is Allow outbound, but many corporate images flip this to Block).

Equivalent PowerShell (executed as Administrator, adapted to the install path):

$TIA = "C:\Program Files\Siemens\Automation\Portal V17"
New-NetFirewallRule -DisplayName "TIA V17 - S7 TCP 102 (LAN)" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 102 -RemoteAddress 192.168.10.0/24 -Profile Any
New-NetFirewallRule -DisplayName "TIA V17 - Discovery UDP 17476-17478" -Direction Inbound -Action Allow -Protocol UDP -LocalPort 17476-17478 -Profile Any
New-NetFirewallRule -DisplayName "TIA V17 - TIAPortal.exe" -Direction Inbound -Action Allow -Program "$TIA\TIAPortal.exe" -Profile Any
New-NetFirewallRule -DisplayName "TIA V17 - S7OUCSC.exe" -Direction Inbound -Action Allow -Program "$TIA\S7ONLINE\S7OUCSC.exe" -Profile Any
Code-signing note: Many Siemens automation binaries are signed with the Siemens AG code-signing certificate. If your corporate policy enforces a Signed rule, restrict the program rules above to Allow if signed by Siemens AG. This is the configuration Siemens uses internally on its own demo PG/PCs.

6. Verification Procedure

After applying the fix, validate that all devices are reachable and that the original symptom is gone. The recommended verification sequence takes about 90 seconds:

  1. Confirm the firewall state from PowerShell: Get-NetFirewallProfile | Format-Table Name,Enabled. All three profiles should report False (fast fix) or the new rules should be visible with Get-NetFirewallRule -DisplayName "TIA V17*" (granular fix).
  2. From the LAN adapter, ping the CPU: ping 192.168.10.10 -S 192.168.10.200. Expect four replies.
  3. From the LAN adapter, open TCP 102 to the CPU: Test-NetConnection -ComputerName 192.168.10.10 -Port 102. Expect TcpTestSucceeded: True.
  4. In TIA Portal, select Online → Accessible devices. The CPU, ET 200, and HMI should all appear with a green icon.
  5. Double-click the CPU. The Online → Diagnostics view should open without the Error in lower-level component dialog. Cycle power on the CPU briefly to confirm write access: Online → CPU operating panel → MRES.
  6. Repeat for the ET 200 and for the HMI. From the HMI, the routing path through the HMI to the CPU should also be online.
  7. If Startdrive is installed, open a drive project, right-click the SINAMICS drive, and select Online → Connect to target system. The drive should come online.

7. Alternative Workarounds and When to Use Them

If the IT policy forbids modifying the firewall on a domain-joined laptop, the following workarounds avoid touching the firewall while still allowing TIA Portal to reach the plant LAN. Choose the one that matches the operational context.

Workaround When to use Trade-off
Use a USB-Ethernet adapter as the second NIC and assign it to a different network location (Work network, Private profile) Single-tenant support calls; the IT image does not allow firewall changes Requires carrying an extra adapter; one-time cost < 30 EUR
Use a personal hotspot (phone) for internet and keep the LAN cable plugged in Field service engineers, travel situations Cellular data usage; some corporate MDM tools block personal hotspot
Disable the Wi-Fi adapter entirely and use a USB LTE stick for internet Long commissioning campaigns where multi-network access is required Increases data cost; improves determinism
Add a persistent route to the machine subnet through the LAN adapter with a higher metric than the Wi-Fi default Engineering networks where Wi-Fi is the only available path Does not solve the firewall block by itself; usually combined with the granular fix
Use TeamViewer / AnyDesk to remote into a separate, locally-managed engineering PC that is wired to the machine Remote support scenarios Latency-sensitive operations (firmware update) become slow
Run TIA Portal in a Windows Sandbox with the host network adapter mapped to the sandbox Air-gapped test labs Sandbox does not persist credentials; for evaluation only

8. Prevention: PG/PC Hardening for Commissioning Engineers

Engineers who carry a TIA Portal PG/PC between multiple sites should standardize the workstation configuration to avoid the firewall issue reappearing at every site visit.

  1. Create a dedicated Siemens Automation Network profile in Windows. The LAN adapter should be set to Private profile and the SSID/cable should be tagged in the Network and Sharing Center.
  2. Pin wf.msc to the taskbar of the engineering laptop.
  3. Export the granular TIA Portal rules to an XML file (netsh advfirewall export "C:\TIA_Firewall_Rules.wfw") and store them in the laptop's image provisioning script. Apply on every rebuild.
  4. Disable Windows automatic profile detection prompts for the LAN adapter by setting NLA\AllowSharedToBePublic = 0 and configuring the LAN adapter's Network Location Awareness (NLA) to a fixed Private profile.
  5. After every Windows cumulative update, run Get-NetFirewallProfile and verify that no third-party security product (Symantec Endpoint, McAfee, Trend Micro, Cortex XDR) has re-enabled a profile that the engineer previously disabled.
  6. Document the workaround in the site acceptance test (SAT) report so that the next engineer on site does not lose half a day troubleshooting the same dialog.

9. TIA Portal V17 Update and Patch Notes Cross-Reference

The TIA Portal V17 line is delivered as a base release plus rolling updates. Each update may re-enable Windows default firewall rules during the install. The TIA Portal V17 entry ID 109769780 in the Siemens Support (SIOS) portal tracks the cumulative fix list.

Update level Build number (typical) Date Effect on firewall / online
V17 base 17.0.0.0 Mar 2022 Initial release. Firewall behavior unchanged.
V17 Update 1 17.0.1.0 Jul 2022 No change to S7ONLINE binding.
V17 Update 2 17.0.2.0 Oct 2022 No change.
V17 Update 3 17.0.3.0 Feb 2023 No change.
V17 Update 4 17.0.4.0 Jun 2023 No change.
V17 Update 5 17.0.5.0 Oct 2023 No change.
V17 Update 6 17.0.6.0 Mar 2024 No change.
V17 Update 7 17.0.7.0 Sep 2024 Security hardening of the S7 stack. Re-validate granular firewall rules after install.

The V17 cumulative update cycle does not directly alter the Windows firewall. The reported regressions are caused by Windows 10/11 cumulative updates (notably the May 2023 and October 2023 cumulative rollups) that changed the default behavior of Public profile rules. The remediation is the same in every V17 sub-release: scope the rules to the machine subnet and explicitly allow the Siemens automation executables.

10. Related Symptoms and Diagnostic Matrix

The following matrix maps the most common TIA Portal V17 online errors to their actual root cause. Use it to triage before reaching for the firewall fix.

Symptom in TIA Portal Most likely root cause Diagnostic Fix
Error in lower-level component (this article) Windows Defender Firewall multi-homed block Disable firewall, retry Scope firewall to Siemens automation executables and TCP 102 / UDP 17476-17478
No accessible devices shown Wrong PG/PC interface selected in Set PG/PC Interface Open Set PG/PC Interface tool Set S7ONLINE to the LAN adapter
Accessible devices visible but double-click times out Switch port blocks ISO multicast, or PLC is on a different VLAN Wireshark capture of TCP 102 Reconfigure the managed switch; add the CPU's VLAN to the trunk
Online goes to PLC but project tree shows question marks TIA project does not match the CPU firmware, or TIA version mismatch Online → Compare offline/online Recompile the project, or upgrade the CPU firmware
Online works, but firmware update fails with the same error Antivirus software blocking the TIA Portal updater (wuauserv, dism) Check %ProgramData%\Siemens\Automation\LogViewer Whitelist Siemens.Automation.Portal.exe in the AV product
Online works, but Startdrive commissioning of SINAMICS G120 fails Startdrive PG/PC interface not bound to the LAN adapter Set PG/PC Interface → Startdrive → S7ONLINE Set Startdrive to use the same S7ONLINE path as STEP 7
Online works on Wi-Fi only, fails on cable, or vice versa Routing metric and binding order route print, Get-NetIPInterface Force the LAN adapter to a lower metric with Set-NetIPInterface -InterfaceAlias "Ethernet" -InterfaceMetric 10
Online works until Windows update, then fails Windows update re-enabled a default-deny rule Event Viewer → Applications and Services Logs → Microsoft → Windows → Windows Defender Firewall Re-apply the granular TIA Portal rules

11. Verification Checklist Before Closing the Ticket

Use this checklist on every TIA Portal V17 commissioning laptop before returning it to the engineer pool.

  • TCP 102 from PG/PC to every CPU on the machine LAN returns True on Test-NetConnection.
  • UDP 17476-17478 broadcast discovery enumerates all devices in Online → Accessible devices.
  • The HMI, the local CPU, and any routed CPU behind the HMI all open their online view without the Error in lower-level component dialog.
  • The firewall is either re-enabled (granular fix) or the ticket explicitly documents the temporary disablement (fast fix) with an expiry date.
  • The PG/PC image is captured (Acronis / Veeam agent) so the configuration is reproducible on the next rebuild.
  • The site's IT change-management record (ServiceNow / Jira) is updated with the firewall change and the rollback procedure.

12. Frequently Asked Questions

Why does TIA Portal V17 throw "Error in lower-level component" only on the PLC and ET 200, but the HMI works fine?

The HMI accepts a direct TCP/102 connection from the LAN adapter, so the Windows firewall treats the flow as same-interface and allows it. The PLC and ET 200 require the S7 routing function of the HMI to reach them, which involves a second session. Windows Defender Firewall, with the Wi-Fi adapter on a Public profile, drops the routed packets and TIA Portal reports the failure as "Error in lower-level component" because the lower WinSock layer returned a generic error. Disable the firewall on the Domain, Private, and Public profiles (or scope the rules to TCP 102 and UDP 17476-17478) to restore full access.

Is it safe to turn off Windows Defender Firewall completely on a TIA Portal engineering laptop?

For a single, non-domain-joined engineering laptop used only on isolated machine LANs, yes. For a domain-joined laptop that also handles e-mail, VPN, and corporate applications, the IT policy usually requires the firewall to stay on. In that case, create the granular TIA Portal rules (TCP 102, UDP 17476-17478, and program rules for TIAPortal.exe, S7OUCSC.exe, and ScsCom.exe) instead of disabling the firewall. The granular fix solves the same symptom without violating policy.

Do I need to restart TIA Portal V17 after disabling the firewall?

No. The S7ONLINE service re-reads the firewall rules on the next connect attempt. Close the Error in lower-level component dialog, leave the project open, run wf.msc, change the firewall state, and immediately retry Online → Accessible devices. The CPU and ET 200 should appear within 5 to 10 seconds.

Does the same firewall issue affect TIA Portal V18 and V19?

Yes. The S7 communication stack is functionally identical across V17, V18, and V19. The Windows Defender Firewall behavior in Windows 10 21H2, 22H2, and Windows 11 is also unchanged. The fix documented in this article applies to all three releases. For V18 and V19, adjust the program rule paths to %ProgramFiles%\Siemens\Automation\Portal V18 and %ProgramFiles%\Siemens\Automation\Portal V19 respectively.

Can the firewall issue also prevent firmware download to the S7-1500 CPU from TIA Portal V17?

Yes. Firmware download uses the same S7 communication channel (TCP 102) and the same S7DOS service. If the firewall blocks online access, the firmware update will fail with the same Error in lower-level component dialog or with a 0x011F firmware loader error. Apply the firewall fix first, then re-attempt the firmware download from Online → CPU operating panel → Firmware update.

Back to blog