IMD SolutionComputing LibraryShop main store

Troubleshooting

Why VNC to the IPC fails on X130 but works on X127

Remote access and virtualization Published 8 min read By IMD Solution engineering team

Short answer

Port 5900 in the NCU firewall only admits traffic addressed to the NCU. A VNC session to the system-network IPC over X130 additionally needs a route into the system network, a return path through the NCU and an activated basesys.ini edit in the copy that governs X130. The X127 result proves the IPC and its VNC server are healthy.

On this page
  1. What the opened port does and does not admit
  2. Which address does the VNC client target
  3. Route and return path from the company workstation
  4. Test the VNC port on the resolved path
  5. The basesys.ini copy that governs X130
  6. Worked example: does the company workstation have a route to 192.168.214.241
  7. The decision for your two paths
  8. Questions asked

Your VNC failure over X130 is a routing and configuration-activation problem, not a closed port. The firewall line you uncommented admits traffic addressed to the NCU itself; it does nothing for traffic that must cross the NCU to reach the SIMATIC IPC at 192.168.214.241 on the system network. That is why the identical client works over the X127/IBN path and fails over X130: the IBN path needs no company-network route, X130 does, and the basesys.ini copy you edited in the user directory on the system card did not govern the X130 interface. Work the checks in order: confirm which address the client targets, build and verify the route and return path, test the VNC port on that path, then load and activate the configuration copy that actually governs X130.

What the opened port does and does not admit #

The line you set, FirewallOpenPorts="TCP/22 TCP/5900 TCP/102 TCP/80" in the [LinuxBase] section of basesys.ini, is where ports open in the NCU's own Linux firewall on this control family. An entry there admits connections whose destination is the NCU, and an NCU-hosted service answers them. A port opened this way is a listening endpoint owned by the NCU; it is not a rule that relays traffic onward to another device — those are two different functions. A VNC session to the IPC originates on the company network, crosses the NCU and must then be routed toward the system network. For that crossing, the vendor's routing note for the equivalent 840D sl topology requires system-network devices to use the NCU's system-network address as their standard gateway, and requires that routing from X120 to X130 is not switched off in basesys.ini. Port list and routing switch are separate functions in the same file.

The X127 result also tells you where not to look: the IPC and its VNC server demonstrably run, so nothing on the IPC needs changing before the X130 path passes the network tests. The X127 path proves nothing about X130, which has its own route to build. The same shape of fault appears when a site-to-site VPN is up but the SCADA PC cannot reach the remote PLC — the link exists, the route does not.

VNC client target Function required What fails when it is missing
The IPC's system-network address, 192.168.214.241 A route from the company network into the system network plus the return path through the NCU No ping, no VNC — your X130 symptom
The NCU's X130 address An NCU-hosted VNC service, or an explicit forward to the IPC The port admits the connection but nothing answers behind it

Which address does the VNC client target #

  • Write down the exact address the client is given. If it is a hostname, resolve it first and diagnose the resolved address; a stale host record makes every later test meaningless.
  • Target the IPC address: the session needs end-to-end routing from the company network plus a return path. Continue with the route checks below.
  • Target the NCU's X130 address: decide whether VNC should terminate on the NCU or be forwarded to the IPC. Forwarding needs a listening address and port on the X130 side and a destination address and port on the system side, both configured — the firewall line is not that mapping.

Route and return path from the company workstation #

Run every check from the workstation that will run the VNC session; routing policy can differ per source.

  • Ping the NCU's X130 address. A reply clears the company side. No reply points at X130 addressing, cabling, VLAN placement, workstation routing or an ICMP rule — not at the IPC.
  • Look up the workstation's route for the IPC address. The match must select the gateway that leads to the machine; only a default route toward the corporate core means the company network has no path into the system network. Add a route for the IPC's system-network subnet on the router that owns the machine connection, with the NCU's X130 address as the next hop.
  • Confirm the return path. The IPC's standard gateway must be the NCU's system-network address, and routing between the system network and X130 must stay enabled — the two requirements from the vendor routing note. On SINUMERIK ONE with Operate, routing is configured in the System network settings interface of the HMI, with corresponding keys in basesys.ini. Forward reachability without a return route produces exactly the symptom an inbound firewall block produces.
  • Ping the IPC address. A reply establishes bidirectional reachability; no reply while the X130 address answers leaves the fault between the two networks, which is where your installation sits.

The X130 company-network settings on the NCU — address, mask and gateway — are changed on the NCU's company network screen with the Change softkey, as the 840D sl integration documentation shows; the walkthrough on configuring the 840Dsl X130 for company network integration covers those settings screen by screen.

Test the VNC port on the resolved path #

On SINUMERIK ONE 6.15 with TIA 17, test the VNC TCP port against the exact address the client uses before touching any VNC setting, and keep the same client and credentials that worked over X127 so the comparison isolates the network.

TCP/5900 result What it means Next step
Connects The path and the firewall line work end to end Any remaining failure is access authorization on the target
Refused Nothing listens at that address, or the endpoint rejects the connection Verify the service or the forward's destination
Times out A boundary drops the session or the return path is incomplete Inspect each boundary in both directions
Address unreachable Layer 3 unresolved Return to the route checks

The basesys.ini copy that governs X130 #

Your edit in the user directory on the system card changed no X130 behavior. An edit with no effect has three causes, each with its own check:

  • Wrong copy. The system is supplied with a template_basesys.ini file to which the documented defaults apply, and further copies can sit in user or HMI directories. Establish which instance the NCU's Linux base system actually reads before trusting any edit.
  • Overridden or partial setting. Confirm the firewall line stays active rather than replaced by a higher-priority configuration, and grant the VNC access right separately from the port list, in the basesys.ini or HMI configuration your setup uses.
  • Never activated. Apply the activation method your ONE 6.15 documentation defines, then read the effective firewall and routing state back from the running system; the file text is not evidence of the running state.

One security boundary while you are in that file: the line also opens TCP/22, TCP/102 and TCP/80. Keep closed anything the approved machine-network design does not require from the company network, and scope the opening to the source subnets that need VNC. Where the company network reaches the machine across more boundaries than this NCU, the same layering applies as in remote SCADA access through firewalls and proxies.

Worked example: does the company workstation have a route to 192.168.214.241 #

Inputs: the IPC address 192.168.214.241 from your question, sitting on the system network; a workstation at 172.16.8.61 with mask 255.255.255.0; a company router inside address of 172.16.8.1; an NCU X130 address of 172.16.8.12. The workstation, router and NCU values are example values, so substitute your own; the system-network mask assumed for the arithmetic is 255.255.255.0, replaced by whatever your machine actually configures.

Rule in words: a workstation delivers a packet on its own subnet only when the destination address ANDed with its mask equals its own network address; every other destination goes to the default gateway, and that gateway needs a route of its own toward the destination. The session completes only if the IPC can also answer, so its standard gateway must point at the NCU and the NCU must carry the reply out through X130 with routing enabled.

Arithmetic:

  • Workstation network: 172.16.8.61 AND 255.255.255.0 = 172.16.8.0.
  • Destination network: 192.168.214.241 AND 255.255.255.0 = 192.168.214.0.
  • 172.16.8.0 differs from 192.168.214.0, so the destination is off-subnet and the packet's next hop is the default gateway 172.16.8.1.
  • The router needs a route for 192.168.214.0 with mask 255.255.255.0 and next hop 172.16.8.12; with only a default route, the packet leaves toward the corporate core and never reaches the machine.
  • The IPC's reply to 172.16.8.61 must go to its standard gateway, the NCU's system-network address, and leave through X130 with routing enabled.

Result: four elements decide this session — the router route toward the NCU's X130 address, the IPC's standard gateway set to the NCU's system-network address, routing between the system network and X130 enabled, and the firewall line you already edited.

Decision: if the NCU's X130 address answers ping and the IPC address does not, this routing layer is exactly what is missing, and no further firewall line will change that. Once both addresses answer, the network work is done and any remaining failure sits in access authorization on the target.

The decision for your two paths #

  • Client targets the IPC: build the route and return path as in the worked example, keep routing between the system network and X130 enabled, activate the governing basesys.ini and read the state back. Your firewall line is correct as it stands once the route exists — this is the documented PG/PC routing pattern for the control family.
  • Client targets the NCU's X130 address: an NCU-hosted service must answer, or an explicitly configured forward must map the X130 listening address and port to the IPC's address and port 5900, both sides configured and activated. An entry in FirewallOpenPorts is an admission rule, not a forward.

Re-test in order after each change:

  1. Ping the NCU's X130 address from the workstation.
  2. Confirm the workstation's route selects the machine gateway.
  3. Ping the IPC address.
  4. Connect to the VNC port on the address the client uses.
  5. Start the session with the credentials that worked over X127.

Questions asked

Why did the same VNC client work over X127 but fail over X130?

X127 is the machine's IBN commissioning port, so your PC reached the IPC across the machine side with no company-network routing in the path. On X130 every packet must be routed into the system network and back through the NCU. The X127 session therefore proves the IPC and its VNC server are healthy and says nothing about the X130 route.

What do the other ports in the firewall line expose?

TCP/22 is SSH, TCP/102 is the classic Siemens PLC communication port ISO-on-TCP and TCP/80 is HTTP. The line in this case opens all four, the VNC port included. Keep each closed unless the approved machine-network design requires it from the company network, and scope any opening to the source subnets that need VNC access.

Do I need to change anything on the IPC's VNC server?

No. The working X127 session already proves the IPC's VNC server, its access authorization and your client credentials function together; only the network path differs. Leave the IPC side untouched until the X130 path passes the ping and TCP port tests, then expect the same credentials to connect.

What if I cannot add routes on the company router?

Use the forwarding pattern: publish an approved endpoint on the X130 side that explicitly forwards VNC to the IPC, and configure both sides of the mapping, the listening address and port and the destination address and port, then activate it. A firewall allow-list line on its own is not a forward.

How do I confirm the firewall edit actually took effect?

An edit that leaves behavior unchanged, like your user-directory copy on the system card, was either never loaded or never activated.

Keep reading

  • Troubleshooting

    Ping works but PLC program download fails over remote access

    ICMP success proves only the routed IP path, not the programming session. A download opens separate query and download connections on documented TCP and UDP ports, and broadcast discovery does not cross a routed VPN. Point the controller's default gateway at the remote-access router LAN address, permit both programming ports to the controller LAN IP, and add the controller manually by IP.

    Remote access and virtualization

  • Troubleshooting

    Reaching an MPI PLC through a gateway from the WAN

    An MPI PLC behind an Ewon Flexy keeps no IP of its own: your S7 client targets the gateway interface the path reaches. From the WAN, use the Flexy WAN IP after enabling WAN-to-LAN traffic (reboot required) or a proxy rule with WAN as Proxy External Interface; over the VPN tunnel, use the LAN IP. Clients that omit the MPI node reach one PLC at a time via Destination Node.

    Remote access and virtualization

  • Troubleshooting

    Site-to-site VPN up but the SCADA PC cannot reach the remote PLC

    An established site-to-site tunnel proves only that the two gateways reach each other. The SCADA PC reaches the remote PLC only when both LAN subnets are distinct, the PC has a working forward route to the remote subnet, and the PLC's default gateway points at its local gateway so replies can return. Verify hop by hop, then test the real SCADA service rather than trusting ping.

    Remote access and virtualization