Troubleshooting
Why a remote OPC UA client to a Flexy 205 needs the VPN
Short answer
The Flexy 205's OPC UA endpoint answers a remote client only while the eCatcher tunnel is up, because the address the client dials is a tunnel address. Keep the VPN session open for the whole OPC UA session, point the client at the listener's real port (4840 is the OPC UA default when the URL names none), match authentication on both ends, browse node IDs, and set the poll interval to at most half the fastest tag's change period.

On this page
- Why does OPC UA on the Flexy stop the moment eCatcher closes?
- Which address and port does the client need in the endpoint URL?
- Can the OPC UA port be published instead of installing the VPN?
- Why does discovery find the server but the session fail with bad user access?
- Why do typed node IDs read nothing even with a healthy session?
- How do you prove the whole remote path before blaming OPC UA?
- What fixes a session that opens but subscriptions never update?
- Questions asked
A remote OPC UA client loses its Flexy 205 session the moment the eCatcher VPN closes, because the endpoint address it dials only exists inside that tunnel. The OPC UA service on the gateway itself is not VPN-dependent: a client on the gateway's own network connects directly, with no VPN client installed. The cure is procedural. Keep the tunnel up for the whole session, enter the endpoint URL the active listener actually answers, match the authentication mode on both ends, browse node identifiers instead of typing them, and size the subscription to the tags' update rate. This article works through the layers in the order a remote client meets them, with the port, timing and client settings that decide each one.
Why does OPC UA on the Flexy stop the moment eCatcher closes? #
Because the endpoint address your client dials exists only inside the tunnel: when the eCatcher session ends there is no route to the gateway, so every OPC UA exchange times out at once, while a client on the gateway's own network keeps working without any VPN.
The remote arrangement puts the client on a network the gateway does not serve directly. The supported path between the two is the vendor's VPN client, which brings the remote PC onto a tunnel address the gateway answers; close that session and the TCP connection to the OPC UA port cannot form, so discovery, session and reads fail together. That on/off signature separates a path dependency from a protocol fault, because no OPC UA setting changes when a tunnel closes. The gateway's OPC UA server is a documented Flexy 205 feature; the question is only whether a given client can reach it.
An outage that tracks tunnel lifetime rather than protocol activity matches the idle-drop pattern behind why a remote access router goes offline after one hour. Viewed from the gateway side, the same boundary is why an edge OPC UA server accepts local clients but not remote ones. The installation that produced this case ran firmware 13.0s0 on the Flexy, and nothing in its outcome was shown to be build-specific.
Decision: an OPC UA outage that starts and ends with the tunnel is a routing event. Restore the VPN, retest, and only then touch server configuration.
Which address and port does the client need in the endpoint URL? #
Enter the endpoint as opc.tcp://host:port, with a host the client can reach through the tunnel and the port the Flexy listener actually uses; OPC UA defaults to port 4840 when a URL names none, and the reported installation held both 4840 and 4841.
The host is whatever address the selected path makes reachable: the local side of the reported case reached the gateway at 192.168.3.5 with its listener set to 4841, while the remote client dialled the WAN form of the same gateway on 4840. Read the active OPC UA server configuration on the Flexy, record its address and listener port, and enter exactly that pair in the client. One passing test validates one combination only: two addresses times two ports gives four possible endpoints, and the other three stay unproven. When the URL names a different address or port than the listener, the refusal has its own diagnosis, covered in why an OPC UA client fails on an endpoint URL mismatch.
Worked example: the listener reads 192.168.3.5 on 4841, so the local endpoint is opc.tcp://192.168.3.5:4841. The remote URL takes the tunnel address with 4840 appended, which is also the port OPC UA assumes when a URL omits the port.
Decision: take the endpoint from the server's own configuration and re-enter it in the client; never carry a port across from a different test stage.
Can the OPC UA port be published instead of installing the VPN? #
Keep the listener off the public internet: the supported remote path is the vendor's VPN client on the operator PC, a third-party VPN is an untested transport you support yourself, and a plain port forward hands the same endpoint to every scanner that finds it.
The requirement behind the question, handing the integrator only a URL, a username and a password, is a transport decision rather than an OPC UA setting. The server answers whoever can reach its port, so the network path is the security boundary. The vendor's VPN provides that path with its own authentication and encryption, terminates at the gateway, and keeps the client off the machine LAN unless routing is configured to extend it; what a controller-side tunnel reaches beyond the gateway is covered in how a VPN gateway on a controller routes you to the machine LAN. A different VPN product can transport OPC UA, but it sits outside what the gateway vendor tests, so its routing, credentials and stability become your engineering.
Decision: a remote client means the VPN session stays up for the whole test and the whole run. A URL and credentials with no client software is a different architecture, chosen deliberately, never improvised as a port forward.
Why does discovery find the server but the session fail with bad user access? #
Discovery only proves the port answers; a session that then fails with a bad user access result is an authentication mismatch, so set the same mode on both sides: anonymous only where both ends accept it, otherwise credentials the server's own user list holds.
Discovery is an exchange the client can make without presenting a user, so a listing in the client's endpoint dialog proves port reachability and nothing more. The session request is where the server checks the user, and the reported case progressed exactly that far: a general OPC UA test client saw the server, sent the username and password created in the gateway's OPC UA server configuration, and received the user-access-denied result. Work three separable checks:
- Same mode on both sides. A client left blank is anonymous only if the server accepts anonymous on that endpoint and security policy; otherwise it is simply no credentials.
- Credentials that exist for OPC UA. A login used by another integration on the same gateway is not evidence that the OPC UA user store holds it.
- A certificate is not a credential. Trusting the server certificate on the client side is a separate step, and certificate-stage failures have their own causes, including clients that reject the server certificate over clock mismatch.
Prefer a dedicated username and password, or certificate authentication where the endpoint offers it, over anonymous: an anonymous session is open to any client that can reach the port. Session-stage credential refusals on the client side are a pattern with their own write-up, such as why an OPC UA client fails on CODESYS user authentication.
Decision: discovery passed and the session returned the user-access denial, so fix mode and credentials on both sides before editing tags or subscriptions.
Why do typed node IDs read nothing even with a healthy session? #
Once the session opens, browse the server's address space from the client and import each node exactly as returned, keeping its namespace index, identifier type and spelling, because a hand-built path in namespace 3 proves nothing about which namespace the Flexy actually exports.
The identifier a client sends is whatever the server assigned at export, in the standard form ns=<namespace index>;<identifier>. A tag name on the Flexy such as LogTag_Integer is not automatically that identifier string: the reported client typed several hand-built namespace-3 paths and varied the capitalization, and none of that establishes the index or path the server exports. Browse the connected session, import the returned identifier, and preserve the namespace index, identifier type and spelling exactly. If browse returns an empty address space, the fault sits upstream of syntax, so return to endpoint and session validation before editing tag strings.
Decision: every tag in the client comes from a browse of the live session, and no hand-built identifier goes into production.
How do you prove the whole remote path before blaming OPC UA? #
Test the layers in order and keep each result separate: address and port reachability, session authentication, browse, then live values; a result at one layer never certifies the next, so a discovery listing is not a session and a session is not a value.
- Bring the VPN up and leave it up, then ping the Flexy through the tunnel before opening any client; an address that assigns without answering is a documented tunnel-state fault, covered in why a VPN-connected Flexy gets an address but cannot be pinged.
- Read the active OPC UA listener configuration on the gateway and enter its exact address and port as the client endpoint.
- From the client machine, confirm reachability to that host and port; a refused or filtered port is routing and firewall work, not OPC UA configuration.
- Match the authentication mode and credentials on both sides, and expect discovery to succeed regardless, because the session attempt carries the verdict.
- Open the session, browse the address space, and import the returned node identifiers.
- Read live values: a toggling Boolean and an integer counter, both changing without a manual refresh.
Keep the acquisition layer separate from the serving layer: tags that reach the Flexy from the PLC can break independently of every OPC UA setting, and a controller program download is one documented way they drop, as in why an Ewon Flexy loses CompactLogix tags after a program download.
Decision: one layer, one test, one green result; carry a result forward only as far as it was actually tested.
What fixes a session that opens but subscriptions never update? #
When the session is open but values sit still, suspect the subscription: set that client's device to poll with registered reads and writes disabled as a diagnostic, and size the interval against the fastest tag, at or below 1000 ms when a tag toggles every 2000 ms.
The two client-side settings reported to clear it sit on the Kepware device, not on the tags: Device properties > Subscription > Update Mode = Poll and Device properties > Subscription > Registered Read/Writes = Disabled. Treat them as diagnostics for that client rather than universal requirements, and remove them once values flow if the deployment prefers the default mode.
Worked example: the reported Boolean, LogTag_bool1, toggles with a 2000 ms period. A subscription shows every transition only if it samples at least twice per period, so the publishing or poll interval belongs at or below 2000 ms / 2 = 1000 ms; at exactly 1000 ms the client takes two samples per toggle (2000 / 1000 = 2). Leave a 5000 ms interval in place and each publish carries at most one new state, so a healthy session still looks frozen. A value that reads on demand and turns bad only once a subscription exists is a documented pattern outside OPC UA too, as in why Modbus TCP discrete inputs read bad only on subscribe.
Decision: derive the interval from the fastest tag, at or below half its change period, and use poll mode as a diagnostic while watching values change rather than as a default.
Questions asked
Does a client on the same network as the Flexy need the VPN?
No. A client that can reach the gateway's own address connects straight to the OPC UA listener with no VPN client, using the listener's real address and port. The tunnel exists for clients on other networks; on the local network it adds nothing to the OPC UA path. The same checks still apply: matching authentication, browsed node identifiers and live value reads.
What exactly do you hand the remote integrator?
Four things: the endpoint URL in the opc.tcp form with the tunnel-reachable host and the listener's active port, the protocol default applying when the URL names no port; a username and password that exist in the gateway's OPC UA user settings; the matching authentication mode on the client; and the agreement that the VPN session stays up for the whole test and the whole run.
Why did trusting the server certificate not fix the login failure?
Because trust and credentials answer different questions. Importing the server certificate tells the client that the endpoint is genuine; a bad user access result means the session's user check failed. Confirm the authentication mode matches on both sides and that the username exists with rights over the exported tags. A certificate replaces the password only when the selected endpoint is configured to accept certificate authentication.
Can a different VPN replace the vendor's client?
The server only needs a routed, secured path, so another VPN product can transport OPC UA. That tunnel sits outside what the gateway vendor tests and supports, though: if it drops, routes differently or re-authenticates, the resulting OPC UA failure is yours to diagnose. For a supported installation, run the vendor's VPN client on the remote PC and keep it connected for the whole session.
How fast should the client poll a fast-toggling Boolean?
At or below half the tag's change period. A subscription shows every transition only with at least two samples per period, so halve the fastest tag's period and set the publishing or poll interval there. At exactly half the period the client takes two samples per toggle; slower intervals still show changes but skip the states between publishes, which makes a healthy session look frozen.
Which firmware ran on the installation that worked?
The reported installation ran firmware 13.0s0 on the Flexy 205, and nothing in the outcome was shown to be specific to that build. Read the build running on your own gateway, apply the vendor documentation for that release, and rerun the sequence of endpoint, session, browse and subscription on it before attributing any behavior to firmware.


