IMDTouchKnowledge BaseShop main store

Troubleshooting

Why a KTP700 Sm@rtServer drops its SSL handshake after days

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

Both errors mean the KTP700's Sm@rtServer session died while the panel kept running: the remote path to the default VNC port aged out behind the cellular router. Move the Sm@rtServer to an unused port such as 5909 on the panel and in the router's forward, install the latest Basic Panel image, and treat remote sessions as short maintenance windows rather than permanent viewers.

On this page
  1. What is actually failing when Sm@rtClient reports ssl handshake failed?
  2. Why does the other panel on port 5910 keep working through the same router?
  3. How do I prove the KTP700 is alive after the connection drops?
  4. Which port should replace the default on the KTP700's Sm@rtServer?
  5. How do I change the Sm@rtServer port on the panel and in the router?
  6. Does the panel image matter, and which one do I install?
  7. How long should a Sm@rtClient session stay open?
  8. In what order do I apply the fixes?
  9. Questions asked

You commissioned remote access through a cellular router, both HMIs answered, and somewhere between an hour and two days the KTP700 Basic Panel stopped answering: Sm@rtClient reports "ssl handshake failed", RealVNC Viewer reports "the connection closed unexpectedly", and the second panel on its own port keeps working. The panel is not dead and the configuration was never wrong — the Sm@rtServer path on the default VNC port aged out behind the router's NAT. The fix is to move the Sm@rtServer to an unused port such as 5909 on the panel and in the router's forward, install the latest Basic Panel image, and keep remote sessions to short maintenance windows. The scope here is the KTP700 Basic PN 2nd Generation, order number 6AV2 123-2GB03-0AX0.

What is actually failing when Sm@rtClient reports ssl handshake failed? #

The Sm@rtServer session on the panel's default port, TCP 5900, is what dies, while the panel itself keeps running its screens: the handshake error means a connection reached the panel and was closed again before the encrypted session was established. Sm@rtServer is the panel's remote-view server, and Sm@rtClient wraps it in an SSL layer whose negotiation produces exactly this message when the server drops the socket mid-handshake. RealVNC Viewer speaks plain VNC to the same server and reports the same event as a connection closed unexpectedly. Two independent clients failing at the same moment clear the client PC and point at the server end of that one port. And because everything worked right after commissioning, the settings were correct once; something on the path degraded with uptime.

Why does the other panel on port 5910 keep working through the same router? #

Because the two paths differ in exactly one design choice: the surviving panel sits on a non-default port, 5910, while the KTP700 sits on the well-known VNC default that automated scanners try first. Your cabinet has already run the controlled experiment — same router, same cellular carrier, same forwarding method — and one panel answers for weeks while the other dies within days. The registered port for VNC display 0 is 5900, the number every sweep probes, so a cellular forward of it collects junk connections around the clock and the panel's small embedded server absorbs every one. The non-default port sees almost none of that traffic, so its NAT binding and server sockets stay clean. That is why the answer is not more router tuning: take the Sm@rtServer off the default port.

How do I prove the KTP700 is alive after the connection drops? #

Run three checks in order — ping, the panel's web page, then a viewer on the local network — and when all three answer, the fault is on the forwarded path, not in the panel.

  1. Ping the panel's IP address from a laptop on the machine network or from the router's own diagnostic tools; a reply confirms the network stack is up.
  2. Open the panel's web page in a browser on that network. The web server listens on its own HTTP port, 5800 by default, independent of the viewer port, so a loaded page proves the panel still serves sessions.
  3. Connect a viewer from that laptop directly to the panel's address with no port suffix; viewers default to display 0, the same port the router had been forwarding.

If the local viewer also fails while ping and the web page answer, the Sm@rtServer process itself is wedged: note the image version the panel reports, because in that case the image update below is the primary fix and the port move is secondary.

Which port should replace the default on the KTP700's Sm@rtServer? #

Use 5909, or any other unused port between 5901 and 5999 that the panel, the router and the client PC do not already use; the number itself does not matter, only that it is off the VNC default.

Worked example, with the panel at 192.168.0.10 (an example address):

  • Router rule: replace the old forward with one line, external TCP 5909 to 192.168.0.10 TCP 5909, and dial it in RealVNC Viewer as 203.0.113.40::5909 (an example public address) — two colons, because a single colon is read as a display number.
  • Display arithmetic: a VNC display number N maps to port 5900 + N, so display 9 is 5900 + 9 = 5909, and the surviving panel's 5910 is display 10: 5900 + 10 = 5910.
  • Sm@rtClient: enter the same port in its connection dialog, as a plain number.

How do I change the Sm@rtServer port on the panel and in the router? #

Make the change in three places — the panel's Internet Settings, the router's port forward, and each client's saved address — and the panel edit is the one that decides the number.

  1. On the KTP700, open the Control Panel, touch the "Internet Settings" icon, press the "Sm@rtServer" button and set "Port (main)" to the port you chose; leave "Port (HTTP)" as it is. The Basic Panels 2nd Generation manual documents exactly this edit on that screen.
  2. In the cellular router, edit the port-forward rule so the external port and the panel's internal port are both the new number; the rule for the second panel stays untouched. The router side of this path is set up as described in Connecting an HMI to the Internet with a cellular router.
  3. In each client, edit the saved address: the port field in Sm@rtClient's connection dialog, and the two-colon form in RealVNC Viewer.

Does the panel image matter, and which one do I install? #

Yes: after the port move, the panel's image is the remaining suspect, so install the newest image for your exact model, matched by the order number on the rating plate — 6AV2 123-2GB03-0AX0 for the KTP700 Basic PN 2nd Generation. Siemens publishes these under "Image Downloads for SIMATIC HMI Operator Panels: Comfort / Mobile / Basic Panels" on Industry Online Support, entry 109825750, where each image is listed against the models it fits. For images from TIA Portal V15 and higher, the WinCC documentation routes the update through a USB memory card: you create the device image on the card and load it on the panel.

  1. Save a current backup of the panel project first; the update replaces the panel's software.
  2. Pick the image for the order number on the rating plate and follow the load steps the download page gives for that image version.
  3. After the restart, confirm the image version the panel reports, then run the remote connection for several days before calling it fixed.

How long should a Sm@rtClient session stay open? #

Plan remote sessions as maintenance windows of one to two hours, not as a permanent viewer: the channel is designed for short service tasks, and a session held open for days is the pattern most likely to end in the drop you saw. Connecting intermittently to check values is exactly the intended use — and this failure appeared anyway, which is why the port move and the image come first and the session habit is the third measure. For continuous visibility, poll the data upstream in the PLC or a historian instead of holding a viewer open. One caution belongs here: if a drop interrupts a value you were writing from the client, read that value back before writing it again, because a write cut off mid-session may or may not have been applied.

In what order do I apply the fixes? #

Port move first, image second, session habit third: the port change repairs the path in one edit, the image removes the server-side suspect, and the habit keeps both from being stressed again.

  • Drops after hours or days while the panel beside it on a non-default port survives: move the port, update the image, and expect the same clients to stay reachable; verify over a week of normal use.
  • Drops even when the viewer is on the local network: the panel's server is the fault, so the image update is the primary fix and the port move is good hygiene.
  • Refused from the very first attempt rather than dropping later: that is a different fault — start from the Sm@rtServer enable state and the router rule, the case covered in Why KTP900 Basic Sm@rtServer refuses remote client connections.

Questions asked

Does moving the Sm@rtServer port change the panel's web page address?

No. The web server has its own Port (HTTP) field on the same Sm@rtServer screen, 5800 by default, and it is untouched by the change, so saved bookmarks keep working. If the router also forwards that port for browser access, leave that rule as it is.

Do I need to compile or download the TIA Portal project after the port change?

No. The main port is a device setting made in the panel's Internet Settings, not an object in the screens project, so there is nothing to compile or download in TIA Portal. The only other edits are the router's port-forward rule and the address stored in each client.

Does changing the port interrupt the machine or the PLC connection?

No. Runtime keeps running and the PLC connection is untouched; only open viewer sessions drop when the server restarts on the new port. Make the change between production runs so nobody is working through a remote session at that moment.

Can I keep using RealVNC Viewer instead of Sm@rtClient?

Yes. Sm@rtServer accepts standard VNC viewers, which is why a third-party viewer worked before the drop, and that does not change with the port move. Keep the address form you already use for the panel. Sm@rtClient is the vendor's matching client, but viewing does not require it.

Keep reading

  • Troubleshooting

    Comfort Panel Sm@rtServer reports an unencrypted VNC connection

    The popup is the viewer reporting the session it negotiated, not a panel fault. Sm@rtServer authenticates with a password and encrypts only when the encryption setting on the panel is on and the client supports the offered security method. Check the setting in the panel's Internet settings, test with Sm@rtClient first, and keep any third-party VNC viewer to a password of at most 8 characters.

    HMI and touchscreens

  • Troubleshooting

    Why a Comfort Panel script cannot restart a USB port

    Comfort Panel scripts have no documented function to disable and re-enable a USB port, so a script cannot restart the RFID reader connection. Sort each drop-out into one of two logged failure states, recover it by USB reconnection or a panel power cycle, and escalate to Siemens support with the Option+ and TIA Portal versions.

    HMI and touchscreens

  • Troubleshooting

    Why a TP177A Runs Slowly After a WinCC Flexible 2008 Transfer

    A TP177A that slows down only after a WinCC flexible 2008 transfer has one of three causes: the panel image never got the OS update the 2008 build demands at first transfer, the engineering station lacks the latest 2008 service pack and its cumulative update, or the MPI or PROFIBUS segment runs at a rate and length the 2008 polling exposes. Run the OS update, install the newest pack, then set the highest baud rate the cable length and every node allow.

    HMI and touchscreens

Why a Sm@rt Access client view stays small after migration