Troubleshooting
Why a remote OPC DA client fails to reach a LAN OPC server
Short answer
A classic OPC DA server that answers a client on its own PC but not one on another LAN computer is almost always blocked at DCOM or by the Windows firewall, not by the OPC server. Prove the server locally, confirm the transport is DA, open TCP 135 plus a sized RPC port window, then grant the client account access and launch rights in Component Services.

On this page
A classic OPC DA server that answers every client on its own PC but refuses a client on another LAN computer is almost never an OPC problem. OPC DA rides on Microsoft DCOM, and DCOM adds three things a local connection never exercises: a network identity for the client account, a remote launch step for the server process, and a firewall surface built on RPC. Work the layers in order: prove the server locally, confirm the transport really is DA, open the RPC exchange in the Windows firewall, then give the client account access and launch rights in Component Services. Change one layer at a time and retest before moving on, because a fix that lands on the wrong layer hides the real fault.
Confirm the transport is OPC DA, not OPC UA #
Check what the client is actually speaking before touching DCOM. A DA client connects through the server's ProgID or CLSID over DCOM; a UA client connects to an endpoint URL with its own port and security model, and none of the settings below apply to it. Servers that offer both interfaces routinely get configured for the wrong one, so make the DA choice explicit in the client's connection settings.
UA also fails differently: a UA client can drop its session and leave the callback that should report the loss unset, which an OPC UA client's lost-session callback behavior walks through. If you do move the link to UA, which side may act as the server is its own design decision — see HMI OPC UA server vs client: which direction works.
Prove the server on its own PC first #
Run any DA client on the server PC, browse to the same server and read the same tags the remote application needs. If that fails, the fault is in the server, its tags or its runtime state, and no network change will fix it. If it succeeds, you have proven only that the server serves tags inside its own machine — a local connection skips the network logon, the remote launch and the firewall entirely, which is why a healthy local runtime says nothing about the remote path. Write down the Windows version on each machine and the exact wording of the client's error before you change anything; the wording separates a transport failure from an access-denied failure later.
Read the failing layer from the symptom #
Match what the remote client actually does against these five cases; the first one that fits names the layer to fix.
- The server never appears and nothing browses. The DCOM handshake never completes: ping the server PC by its host name, then check TCP 135 inbound on the server, the OPC enumeration service it runs, and the client PC's own outbound firewall, which can block the exchange even when the server side is open. Decision: fix reachability and firewall before touching any permission.
- The server lists, but connecting or activation is denied. The client reached the machine and Windows refused to start or activate the server process. Decision: launch and activation permissions, the DCOM enablement setting, or the server's identity — all in Component Services.
- The connection opens, but reads come back access-denied or bad quality. The process started, but the client identity may not touch its data. Decision: grant access permissions for that exact account.
- Everything works with both firewalls off and fails when they run. Missing rules, not permissions. Decision: restore protection immediately and add the scoped rules below.
- It works only when both PCs carry an identical account name and password. Workgroup authentication, not OPC. Decision: match the accounts or join a domain, then still grant the DCOM rights.
Open the firewall for the RPC exchange #
DCOM does not use one fixed port. The client first contacts the RPC endpoint mapper on TCP 135 on the server, and the server then hands out data connections from the RPC dynamic port range, which current Windows versions set to 49152 through 65535 by default. A firewall that passes ordinary LAN traffic still breaks OPC DA if that exchange is not allowed, so open inbound TCP 135 plus a defined window of dynamic ports on the server PC.
Worked example, sizing the window for a server with 10 concurrent remote clients. Read the current range with netsh int ipv4 show dynamicport tcp, then restrict it with netsh int ipv4 set dynamicport tcp start=50000 number=300 and restart as Microsoft's RPC dynamic port procedure requires. The window runs from port 50000 to 50000 + 300 − 1 = 50299, so one inbound rule covers TCP 50000-50299 next to the rule for TCP 135. Each connected remote client holds one of those ports for the life of its session, so 300 ports ÷ 10 clients = 30 times the demand, and the 300-port floor matches the minimum that OPC interface vendors recommend.
Treat a firewall-off test as a minutes-long bench diagnostic on an isolated network: restore protection before the machine returns to production, and never forward the RPC exchange beyond the plant LAN, because 135 and the dynamic window expose the whole RPC surface, not just your OPC client.
Fix identity and permissions in Component Services #
On the server PC, work through this sequence with dcomcnfg:
- Under Component Services > Computers > My Computer > Properties > Default Properties, confirm Enable Distributed COM on this computer is checked. Repeat the check on the client PC, which needs DCOM enabled as well.
- Under My Computer > COM Security, open Launch and Activation Permissions > Edit Default, add the account the client process runs under or the group holding those accounts, and allow Local Launch, Remote Launch, Local Activation and Remote Activation. Then open Access Permissions > Edit Default and allow Local Access and Remote Access for the same identity. Grant the minimum: the accounts that need remote access, not Everyone with full control.
- Under DCOM Config, open the OPC server's own entry and set the same three permission sets on its Security tab. Application-specific settings override the computer defaults, and a customized-but-empty setting here is the most common place a working default silently stops working.
- On that entry's Identity tab, prefer a dedicated account over The interactive user, which only runs the server inside a logged-on desktop session. Leave the default authentication level alone unless the server vendor's DCOM guide names a specific value.
- Record the original settings before you change them, and change only the layer the symptom pointed to.
The identity has to be the one the client actually uses: an interactive session, a service and a scheduled task on the client PC can each run under different accounts, and rights granted to the wrong one look like an intermittent fault. In a workgroup, an account with the same name and password on both machines is a legitimate way to get authentication working; on a domain, use the domain account throughout.
Verify the remote path end to end #
From the client PC, connect using the server's host name, browse, and read one representative tag; compare its value and quality against what the local application shows, because a successful browse is not a working server. Close the client, reopen it, and confirm the connection holds under the account production will use, with both firewalls running. If reads work but subscriptions drop later, that is a separate callback-layer fault covered in fixing OPC DA subscription callback faults in a WinCC HMI client, and when the permissions all check out but DA still fails on a WinCC machine, the remaining causes are narrow enough to have their own write-up: why WinCC Professional OPC data access fails despite DCOM settings.
Net decision: a remote DA failure is fixed at the layer the symptom names — reachability and the RPC exchange for a dead handshake, launch and activation rights for a refused start, access rights for a refused read, scoped rules for a firewall-dependent connection, and identity for the matched-account case.
Questions asked
Does putting the same username and password on both computers fix remote OPC DA?
It often gets workgroup authentication working quickly, because Windows can pass those identical credentials without a domain controller. Treat it as a diagnostic shortcut, not the whole fix: the server's DCOM access and launch and activation permissions still have to name that account, and on a domain you should use the domain account instead of duplicating local ones. The password also has to change on both machines together, or the working connection breaks at the next logon.
Why does my OPC DA server stop answering remote clients after a reboot or logoff?
Check the server's DCOM identity. When it is set to the interactive user, the server exists only inside the desktop session of whoever is logged on at the server PC; once that person logs off, a remote client has no session for Windows to launch the server into and the connection fails even though permissions are correct. A dedicated account on the Identity tab keeps the server launchable across logons.
How many ports does OPC DA actually need open?
Two things: TCP 135 for the RPC endpoint mapper, plus a block of dynamic ports for the data connections. Windows opens 49152 through 65535 for that purpose by default, which most plant firewall policies will not accept as a rule. Restricting the dynamic range to one dedicated 300-port window and opening that window next to 135 is the usual compromise between function and a tight rule set.
What service does remote OPC DA browsing depend on?
The OPC Foundation's OpcEnum service on the server PC. Remote clients ask that service to list the registered DA servers; if it is stopped, the browse comes back empty even though the server itself is healthy and a direct connection that names the server's ProgID still works. Set it to start automatically on the server, and treat a failed browse as a separate fault from a failed tag read.
Is OPC UA affected by any of this?
No. OPC UA does not use DCOM: it opens one connection to the port the server configuration defines and carries its own security, so there is no endpoint mapper step and no dynamic port window to open. If your client offers both interfaces, moving to UA removes the entire DCOM layer, at the cost of configuring the UA endpoint, certificate trust and user authentication on both ends.

