IMD SolutionComputing LibraryShop main store

Troubleshooting

Why an edge OPC UA server accepts local clients but not remote ones

Edge computing and IIoT Published 6 min read

Short answer

A remote OPC UA client is refused by an edge gateway because the gateway exposes its OPC UA server to external clients only when the IIoT plugin is active on the license; the bind address field is hidden by design, so there is no setting to edit. Confirm the listener, add the plugin, then open the endpoint port through the firewalls.

On this page
  1. Confirm the license before touching the network
  2. What the IIoT plugin unlocks
  3. Why local clients connect and remote ones do not
  4. Example: isolating the listener hop from a remote client
  5. Enabling and testing remote access
  6. Proving the session is live
  7. The decision
  8. Questions asked

If a remote OPC UA client cannot connect to your edge gateway while a client on the gateway host itself connects fine, the gateway is behaving as licensed, not misconfigured. An Ignition Edge server exposes its OPC UA server to external clients only when the IIoT plugin is active on the license. The bind address field is hidden in the server configuration by design, so there is no setting you can edit to open it up. Fix the license first, the listener second, the firewalls third, and certificates last.

Confirm the license before touching the network #

Check the gateway's license status and module list for the IIoT plugin. If it is absent, remote OPC UA access cannot be enabled by any configuration change; add the plugin to the license and restart the OPC UA server module.

Two version facts narrow the decision:

  • Edge 7.9.x provides no external access to its OPC UA server at all, licensed or not. If your gateway runs 7.9, the upgrade path is the answer, not a setting.
  • Edge 8 and later expose the server to external clients only with the IIoT plugin active.

What the IIoT plugin unlocks #

The plugin was formerly called Edge MQTT. On one license item it carries:

  • MQTT Transmission, which publishes edge tag data to an MQTT broker
  • The Opto22 SNAP PAC driver module
  • The Emerson ROC driver module
  • The ABB Totalflow driver, which requires manual installation
  • External OPC UA client access to the edge server itself

That last line matters: MQTT publishing and inbound OPC UA access come from the same license item. If you activated the plugin for MQTT and the remote OPC UA client still fails, the license is not the problem any more and the fault is in the listener, the network path or the session security.

Why local clients connect and remote ones do not #

A local client reaches the server over the host's loopback path, so no NIC, switch or firewall is involved. A remote client crosses every hop in this list, and without the IIoT plugin the failure happens at hop 4, before any network element matters:

  1. Client NIC and cable: link down, wrong VLAN or subnet. Ping the gateway from the client.
  2. Routers and firewalls between the subnets: endpoint port not permitted. Test the port from the client side.
  3. Gateway host OS firewall: inbound rule missing. Review inbound rules on the host.
  4. OPC UA listener: server not exposed to external clients because the IIoT plugin is not active. Compare the listening address against the host NIC address.
  5. Endpoint negotiation: client and server share no security policy or message mode.
  6. Certificate trust: server rejects the client application certificate.

Example: isolating the listener hop from a remote client #

These inputs are illustrative; read your own endpoint port from the gateway's OPC UA server settings before running anything.

Inputs: edge host at 10.1.4.60, remote client workstation at 10.1.4.21, OPC UA endpoint on the standard OPC UA port 4840.

Rule: if the TCP connect succeeds, hops 1 to 3 are open and any later failure is a session or certificate problem; if it fails, check what address the server is listening on.

Arithmetic-free but two checks:

  • From the client, run a TCP connect test to 10.1.4.60 on port 4840. Result TcpTestSucceeded : False.
  • On the edge host, run netstat and filter for the listening state on port 4840. Result: the listener is bound to 127.0.0.1 only, not to 10.1.4.60.

Decision rule with its threshold: a listener bound only to the loopback address means the server is not exposed externally regardless of firewalls, so the fix is the IIoT plugin on the license. A listener bound to the host NIC address or all interfaces with a failed connect points to hops 2 or 3, so the fix is a firewall rule. A successful TCP connect with a client-side error points to hops 5 or 6, so the fix is a matching security policy or a trusted client certificate.

Enabling and testing remote access #

  1. Confirm the IIoT plugin is active in the license; add it if not.
  2. Re-check the OPC UA server settings after activation. The bind address stays hidden, so the proof is the listener check, not that field.
  3. Add an inbound allow rule on the gateway host firewall for the endpoint port, scoped to the remote client's source address.
  4. Open the same port on any intermediate firewall between the client subnet and the gateway subnet.
  5. Point the remote client at the endpoint URL from the server settings, using the host's reachable IP or DNS name, never localhost.
  6. Select a security policy and message mode the server advertises. If the first connect is refused for certificate reasons, trust the client certificate in the server's certificate settings and reconnect.

Proving the session is live #

A TCP connect is not a working data path. Close the loop:

  • Re-run the TCP test from the remote client and confirm it succeeds.
  • Re-run netstat on the host and confirm the listener is no longer limited to the loopback address.
  • Connect, browse the edge tag provider, and subscribe to one tag with a known changing value.
  • Compare the remote client's value and timestamp against the same tag read by a local client at the same moment.

If the remote client connects but the subscription delivers nothing, check what the tag provider actually exposes; the same discipline applies to limiting which tags leave the gateway, as covered in Expose only approved Ignition tags to an external historian. And once external clients can reach the server, lock the endpoint down the way you would any exposed OPC UA server; the hardening steps in Harden a Node-RED OPC UA server exposing PLC tags carry over directly. If the remote client fails while a test tool connects, Troubleshoot Node-RED OPC UA when UaExpert connects walks the same client-versus-server fault split.

The decision #

  • Edge 7.9 gateway, remote clients needed: upgrade to Edge 8 or later; there is no setting on 7.9 that opens the server.
  • Edge 8, listener on loopback only: add the IIoT plugin to the license. That is the whole fix for the listener hop.
  • Edge 8 with the plugin, listener on the NIC address, TCP test fails: add the inbound rule on the host firewall and every intermediate firewall, scoped to the client's source address.
  • TCP test succeeds but the session fails: match the advertised security policy, then trust the client application certificate on the server.

One safety note: opening an inbound OPC UA endpoint on a device at the network edge widens its attack surface, so scope the firewall rule to the client's source address and keep the endpoint on the plant's OT network segment rather than exposed to the enterprise or internet side.

Questions asked

Why does the OPC UA server on an edge gateway work locally but refuse remote clients?

A local client on the same host connects over the loopback path, which is always available. Remote connections are refused at the listener before any network hop is evaluated, so firewall changes alone will not fix it.

Why is the bind address hidden in the edge OPC UA server configuration?

The bind address is not offered as an editable setting, so remote exposure cannot be turned on by editing it. Exposure is controlled by the license through the IIoT plugin. Verify the result after activation by checking the listening address on the host with netstat against the host's own NIC address.

Does the same plugin that enables remote OPC UA also enable MQTT on the edge gateway?

Yes. The IIoT plugin, formerly called Edge MQTT, unlocks the MQTT Transmission module, the Opto22 SNAP PAC and Emerson ROC driver modules, and the ABB Totalflow driver with manual installation. Activating it for MQTT also exposes the OPC UA server to external clients, so one license item covers both.

Can an older 7.9 edge gateway serve remote OPC UA clients at all?

No. Edge version 7.9.x provides no external access to its OPC UA server in any configuration. Only version 8 and later exposes the server to external clients, and only when licensed with the IIoT plugin. On a 7.9 device the only paths out are the gateway's own network services, not OPC UA.

The port test succeeds but the client still cannot connect. What now?

The network path is open, so the refusal happens at the OPC UA session layer. Check that the client selected a security policy and message mode the server advertises, and look in the server's certificate settings for a rejected or untrusted client application certificate. Trust that certificate and reconnect.

Keep reading

  • How-to

    Bridging OPC UA PLC data to MQTT with an edge PC

    Keep the OPC UA server on the PLC side and give MQTT publishing its own role on a separate edge PC that acts as the OPC UA client and MQTT publisher. Commission the two links independently — first a verified tag read, then a verified subscriber message — and only then widen the tag set.

    Edge computing and IIoT

  • Troubleshooting

    Edge gateway online but PLC offline: diagnose the link

    Gateway online only proves the Automation Server can reach the gateway; it says nothing about the gateway-to-PLC session. Confirm the scan result, switch on file logging in /etc/Gateway.cfg under [CmpLog], reproduce the failure, and read /tmp/codesysedge.log at the failure timestamp. A reinstall that holds for about a month points at a returning state: certificate validity, clock drift, address change, or an overwritten configuration.

    Edge computing and IIoT

  • How-to

    Publish one MQTT event when a PLC bit rises

    Publish on the transition, not the level. Retain the previous valid sample of the PLC Boolean and publish one MQTT event only when the pair reads false then true. An acquisition cycle cannot see a pulse shorter than itself, so latch short pulses in the PLC and reset the latch after the event publishes, and make the consumer tolerant of duplicate deliveries.

    Edge computing and IIoT