IMDTouchKnowledge BaseShop main store

How-to

Which TCP ports to forward for remote Weintek HMI access

HMI and touchscreens Published 6 min read

Short answer

On a standard Weintek panel, forward only the service you need: TCP 20248 for EasyBuilder downloads, 5900 for VNC, 21 for FTP, 8000 for HMI communication and 2000 for pass-through. A cMT-SVR instead needs TCP 80, 8000, 10763 and UDP 10275. Port 8000 is not pass-through, and no rule works until the cellular WAN address is genuinely reachable inbound.

On this page
  1. Which TCP ports does a Weintek HMI listen on?
  2. Is port 8000 the pass-through port?
  3. Which ports does a cMT-SVR need through NAT?
  4. Can the default port numbers be changed?
  5. What must work locally before any router rule?
  6. Will the cellular router pass inbound connections?
  7. How do I write the forwarding rules for real?
  8. Questions asked

Forward only the service the remote session actually uses. On a standard Weintek terminal that means TCP 20248 for EasyBuilder project downloads, TCP 5900 for VNC, TCP 21 for FTP, TCP 8000 when a simulator, a PC or another panel must reach this HMI, and TCP 2000 for pass-through remote support. A cMT-SVR is a different list: TCP 80, TCP 8000, TCP 10763 and UDP 10275. Before any of that matters, two things must be true: the service works against the panel's LAN address, and the cellular router's WAN address is genuinely reachable from outside, because carrier-grade NAT defeats every forwarding rule you can write. Work in that order: pick the service, prove it locally, prove the WAN path, then write one rule per service.

Which TCP ports does a Weintek HMI listen on? #

A standard Weintek terminal uses six default ports: TCP 21 for FTP, TCP 5900 for VNC viewing, TCP 20248 for EasyBuilder downloads, TCP 8000 for HMI communication, TCP 2000 for pass-through, and TCP 502 when the panel serves Modbus.

These are function ports, not a model list: what you forward depends on what the remote session must do. A programming-only session needs 20248 and nothing else; watching the screen adds 5900.

Function Default port Transport Changeable?
FTP access 21 TCP Yes, on standard panels, in the terminal's own settings
VNC access 5900 TCP No alternate listener documented
EasyBuilder programming and download 20248 TCP Yes, on standard panels, in the terminal's own settings
HMI communication with simulators, PCs and remote panels 8000 TCP Yes, set in the project
Pass-through 2000 TCP Yes; the documented range runs 2000 to 2100
Modbus server 502 TCP The standard Modbus TCP server port of the Modbus specification

Decision: forward 20248 for remote programming, add 5900 only if you must see the screen, and leave 21 closed unless files actually move that way.

Is port 8000 the pass-through port? #

No — 8000 is the HMI communication port, the one simulators, PCs and remote panels connect to, while pass-through defaults to 2000 with a documented range of 2000 to 2100.

The mix-up is common enough to check hard before saving the router configuration. Forward 8000 when a second HMI or a PC runtime has to talk to this panel; forward 2000 through 2100 when your remote-support tool works through pass-through. If you forward 8000 expecting pass-through, the support tool never lands, and the panel answers on a port nobody forwards.

Which ports does a cMT-SVR need through NAT? #

The cMT-SVR application path needs TCP 80 for system settings, TCP 8000 for COM, TCP 10763 for UAC, trend and event display, plus UDP 10275 for HMI search.

Service Port Transport
System Setting/Misc. 80 TCP
COM 8000 TCP
UAC, Trend, Event Display 10763 TCP
Search HMI 10275 UDP

The standard-panel list above does not describe a cMT-SVR; the app reaching a cloud panel uses this set, and the UDP entry is the one people miss because every other service is TCP. Search rides local-network discovery, so across a router or a VPN, type the panel's address explicitly instead of relying on search. The end-to-end viewer-side setup is covered in configuring Weintek VNC and cMT-SVR remote access paths.

Can the default port numbers be changed? #

Partly: pass-through 2000, the HMI communication port 8000, FTP 21 and the download port 20248 are configurable, while no alternate listener is documented for VNC 5900 or the cMT-SVR services.

The HMI communication port is set in the project, on the Model tab of Edit → System Parameters, so moving it also means updating every remote panel that points here. FTP 21 and download 20248 are changed on standard panels in the settings on the terminal itself.

That panel-local option is documented for standard panels, so do not assume the same screen exists on a cMT product, and for the cMT-side HTTP service on 80 no listener change is documented — present a different external port in the router instead. The practical consequence: read the panel's active settings before writing rules, because a default you assume may have been moved, and your rule would then forward to a dead listener.

What must work locally before any router rule? #

Each service you intend to forward must first succeed against the panel's LAN address from a PC on the same network, because a forwarding rule cannot repair a wrong default gateway, a stopped service or a dead cable.

Connect an engineering PC to the panel's network, run the download, the VNC client or the browser against the HMI address, and record the panel's IP address, subnet mask and default gateway. The gateway matters twice: replies to remote clients leave through it, so it needs a route back toward whoever connects. A download that fails on the bench will fail through the router too, with three extra suspects in the way.

Will the cellular router pass inbound connections? #

Maybe not: a cellular router can browse outward perfectly while carrier-grade NAT blocks every unsolicited inbound connection, so read the WAN address and compare it with what the outside world reports.

From the panel's network, ask an external address-echo service which public address it sees, and read the WAN address the router itself reports. A mismatch means another translation layer you do not control sits in front of your router, and no rule written inside it changes that. The same hidden layer explains why an HMI Modbus TCP link that works locally can fail over cellular in the other direction.

The clean fix is a managed VPN, built the way remote HMI access with dynamic DNS and a VPN describes, which also removes the need to expose any port publicly. If direct inbound is genuinely required, get an inbound-capable service from the carrier and restrict sources at the firewall.

How do I write the forwarding rules for real? #

One rule per service: map the external port to the panel's recorded LAN address and its actual listener port, on the correct transport, and restrict the source to the addresses that need the service.

  1. Fix the panel's LAN address with a static setting or a router reservation, so the destination of the rules never moves.
  2. Confirm every listener from the panel's active settings, not from the default table.
  3. Create one rule per service: external port to panel address and internal port, TCP or UDP exactly as listed.
  4. Restrict each rule to the remote source addresses that genuinely connect, or bind the services to the VPN tunnel.
  5. Test from a connection that is truly outside, such as a phone hotspot; testing the public address from the same LAN depends on the router's NAT loopback and proves nothing.
  6. If a test fails, read the router's connection log for the three events: arrival at the WAN interface, forwarding onto the LAN, and a reply from the panel.

Worked example, with the arithmetic: one cellular router, two standard panels, one engineering PC at headquarters. Panel A is 192.168.1.10 and panel B is 192.168.1.11, both reachable for HMI communication on the default listener 8000. A single WAN address can map each external port only once, so the two panels need two different external ports: 8000 + 1 = 8001 for panel A and 8000 + 2 = 8002 for panel B.

  • WAN TCP 8001 → 192.168.1.10:8000
  • WAN TCP 8002 → 192.168.1.11:8000

Headquarters targets the router's WAN address on port 8001 to reach panel A and 8002 for panel B, and the panels keep their defaults. Adding project downloads to panel A takes one more rule, WAN TCP 20248 → 192.168.1.10:20248, for 2 + 1 = 3 rules in total.

One security note: VNC on 5900 and FTP on 21 are unencrypted, so keep them behind the VPN or forward them only to named source addresses, and when the remote user only needs to watch, making remote HMI access read-only is the better handover.

Questions asked

Do I also need to forward Modbus port 502?

Only when something polls this panel as a Modbus server, or a remote client reads registers from it. A panel acting as a Modbus client only opens outbound connections to the PLC, so 502 needs no inbound rule at all. When the panel does serve Modbus, forward TCP 502 to its address and restrict the source to the polling host.

Why does FTP log in but the file transfer never starts?

TCP 21 carries only the FTP control connection; the file itself moves on a separate data connection that the firewall must also allow. Check whether the panel's server uses passive mode and which data-port range it picks, allow that range, or skip the problem by moving files over the VPN instead of forwarding 21.

Can I publish a different port on the WAN side without touching the panel?

Yes. Router port translation maps an external port onto the panel's real listener, for example WAN TCP 21000 to 192.168.1.10:20248, and the engineering PC then targets 21000. The panel keeps its default, but remember that the renamed port adds no security, only obscurity.

How do I tell whether the carrier is blocking inbound connections?

Compare the address an external echo service reports from the panel's network with the WAN address the router shows. A WAN address in 100.64.0.0/10, or in a private range such as 10.x.x.x or 192.168.x.x, means carrier-grade NAT sits in front of you and no forwarding rule in your router will ever be reached from outside.

Keep reading

  • Troubleshooting

    Downloading a Vijeo Designer Project to a Remote HMI Over VPN

    The greyed-out NAT fields are not the blocker: they only activate for a target and download method that supports address translation. When a VPN already routes your PC into the remote LAN, leave them alone, download straight to the panel's private address, and give the HMI a default gateway so its replies can leave the subnet.

    HMI and touchscreens

  • Troubleshooting

    Why HMI Remote Access Fails While PLC Access Still Works

    Working local traffic between the HMI and the PLCs proves only the switch path, not the default-gateway path a translated remote connection needs. Verify the panel's gateway field, the forwarded ports 6080, 6002 and 6000, and address duplication, in that order; a DHCP laptop with no Internet in the same building points at the same gateway branch.

    Industrial networks

  • How-to

    Connecting an HMI to remote PLCs over a WAN

    Yes, it is feasible: an operator panel supervises geographically distributed PLCs over Modbus TCP on port 502 exactly as on a LAN, provided every site is reached through a site-to-site VPN or approved routed path with a valid return route. Never expose port 502 by public port forwarding, because Modbus TCP carries no authentication or encryption.

    Industrial networks