Troubleshooting
Why web data lags through an eWon WAN proxy
Short answer
The lag lives in the gateway's proxied path, not the machine PC: when one laptop gets smooth updates on the gateway LAN and freeze-then-burst updates on the WAN, the server is cleared. Verify the proxy entry's TCP destination and service port, leave the idle timeout and Maximum connection per proxy at their defaults, and export a backup with support files before rebuilding anything.

On this page
Your page and the machine PC are healthy; the proxied path is not. When one laptop gets smooth updates on the gateway's LAN port and then watches the same page's clock freeze and jump on the WAN side, that single comparison clears the server, the PC and the page script, and puts the fault in how the gateway forwards the traffic. This article gives that boundary test, the proxy-entry fields to verify before you touch any performance dial, and the recovery order for the day the page stops opening while ping still answers. The reported case behind it: an eWon 2005CD joining a 172.20.0.0/24 machine LAN to a 192.168.0.0/24 controls network, serving a JavaScript page that ships one screenshot per second to imitate a live view.
The two-sided test that isolates the fault #
Run it with one laptop, so the client never changes:
- Connect on the gateway's LAN side, load the machine page and time the updates against the page's own clock.
- Move the laptop to the WAN side without touching the server or the page, and load it again.
- Repeat the WAN run in each browser the office actually uses, and note browser and delay for each run.
- Record ping and traceroute separately: they prove the path answers ICMP, not that the forwarded TCP service works.
The reported case, measured exactly this way:
| Test | Reported result | What it proves |
|---|---|---|
| Laptop on the gateway LAN | Loads fast, updates every second | Server, PC and page script are healthy |
| Same laptop on the WAN, old Internet Explorer | A few seconds behind | The path adds delay |
| Same laptop on the WAN, Chrome | Up to 30 seconds behind | Delay scales with the browser's connection behavior |
| Ping and traceroute | Very little latency | Not distance, not raw bandwidth |
LAN clean plus WAN laggy convicts the proxied path and clears the machine. If the LAN side lags too, stop: the server or the page is the fault domain. Gateways land in this position whenever machine and viewers sit on different subnets, the routing job covered in how a VPN gateway on a controller routes you to the machine LAN, here without the tunnel. The same one-client, two-sides method also serves for remote SCADA access through firewalls and proxies whenever a client turns slow.
Why the browser changes the lag #
Each screenshot is a separate HTTP request carried over TCP through the proxy entry, and browsers manage those connections differently. HTTP/1.1 clients commonly open up to six parallel sockets to one host, and browsers differ in how long they keep an idle socket warm: old Internet Explorer reuses one connection for a long time, while Chrome and Firefox rotate more sockets and retire idle ones sooner. A proxy path that is slow to establish or close connections punishes Chrome hardest, which is exactly the reported pattern: same page, same cable, mild in one browser, severe in another.
The backlog arithmetic makes the symptom legible. At one frame per second, a 30-second lag is a 30-frame backlog, because 30 s × 1 frame/s = 30 frames; Internet Explorer's few seconds is about 3 s × 1 frame/s = 3 frames. The rapid catch-up burst is that backlog flushing at once. One safety line goes with it: during a freeze the picture is stale by the whole backlog, so treat a lagging remote view as a recording, never as the machine's live state.
Connection count is measurable too, and it eliminates the usual first guess. One viewer needs a handful of simultaneous proxied connections, six with the parallel-socket behavior above, while the reported installation had raised the per-entry ceiling to 500 with no change. Six needed against 500 allowed is not a bottleneck.
Check the proxy entry, not the performance dials #
The feature is the port-forwarding and proxy rule table. The documentation allows up to 10 rules, each forwarding a chosen protocol, TCP, UDP or FTP, to a LAN device and service port, and its stated position is that the idle connection timeout and the Maximum connection per proxy can keep their default values. So verify the entry field by field:
- Protocol: TCP. A web page rides on TCP; a UDP or FTP entry will not carry it.
- Destination: the machine PC's LAN address, the host that answers when the page is loaded locally.
- Service port: the port the web server actually listens on. The reported entry carried port 1024 while port 80 was only assumed. Decide by test: from the LAN side, open the PC's address with that exact port in the URL. If the page answers, the entry is right; if it answers only on the default port, correct the entry to match.
For the addressing decision behind this table, why this model uses port forwarding and not a 1:1 NAT, see the companion note on choosing port forwarding instead of 1:1 NAT for WAN access.
And leave the Maximum connection per proxy alone: the case already proved the ceiling is not binding, which is the measured form of the documentation's keep-the-defaults advice.
Read the logs during a freeze, not after #
- Have the event log and the real-time log open while a freeze happens; note when it starts and when the backlog flushes.
- At those timestamps, look for concurrent gateway activity, such as a scheduled job, a backup or a connection event, that lines up with the stall.
- Bare logs clear nothing: in the reported case they stayed empty while the lag reproduced on demand.
- If an OPC UA client through the same gateway also drops, check the real-time log for VPN disconnections at the drop times, and keep that a separate symptom unless its timestamps meet the page freezes.
When the page stops opening but ping still answers #
That end state arrived in the reported case: the LAN opened the page, the WAN could ping the PC, and the proxied page was dead. Work it in this order:
- Export a full gateway backup including the support files first; it is the artifact the vendor's escalation asks for. The documented USB-stick procedure covers the Cosy+, so on the 2005CD use the export its own reference describes.
- Rebuild the communication configuration: reset it, re-enter the WAN address, repopulate the proxy table. In the reported case this restored the page.
- Verify against the LAN baseline in each browser, cadence and not just reachability, and keep the backup for the distributor or vendor support if the lag returns.
Call the rebuild a recovery, not a cure: the evidence shows forwarding restored, not which item failed.
The decision for each case #
- LAN baseline clean, WAN laggy: the proxied path. Fix the proxy-entry fields, capture one freeze in the logs, escalate with the backup; the machine PC is not the suspect.
- Both sides laggy: the server or the page. The gateway is out of scope.
- Lag far worse in Chrome or Firefox than in old Internet Explorer: connection handling on the proxied path. Verify protocol, destination and port; the connection ceiling is already eliminated.
- Page dead from the WAN while ping answers: forwarding failed, not routing. Export the backup with support files, rebuild the communication configuration and proxy table, then verify cadence in every browser.
Questions asked
Does a successful ping through the gateway prove the proxy entry is healthy?
No. Ping is ICMP echo, which the gateway routes like any other traffic; the proxy entry forwards only the TCP, UDP or FTP service you configured, so a PC can answer ping all day while its web port is blocked or wrongly forwarded. That is exactly the dead-page-but-ping-works state: treat forwarding as the suspect and rebuild the proxy entry rather than the IP addressing.
Why not raise the Maximum connection per proxy value anyway?
Because exhaustion has a different signature. When a proxy entry runs out of connections, new requests hang or are refused outright, so the page fails to open instead of updating slowly. Your symptom is slow-but-flowing updates, which points at how connections are handled, not how many are allowed, and the reported raise to 500 changed nothing, which is the measured version of that argument.
What should the escalation package contain?
A full gateway backup with support files, the proxy entry exactly as configured (protocol, destination address, service port), an event and real-time log export covering one freeze with its start and flush timestamps, and the browser table: which laptop, which side of the gateway, which browser, how long the lag. With that, a support engineer can reproduce the path instead of guessing at settings.
Is the screenshot-per-refresh page design worth keeping for remote viewing?
For one or two viewers it is fine, but it polls: every viewer pulls a full image each cycle, so any path delay accumulates as a stale backlog. For more viewers or slower links, publish the handful of values the page actually shows (clock, counters, states) by MQTT or into a historian and render them locally; that needs a fraction of the bandwidth and degrades to slower numbers instead of frozen pictures.


