> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datran-opc-da/troubleshooting/client-disconnected.md).

# The OPC Client shows Disconnected or can't reach a remote server

A DATRAN OPC Client data server stays Disconnected, shows error 80040154, or takes a long time to time out. Check DCOM, the firewall and the service account.

**Disconnected**: The OPC Client Interface has lost connection to the OPC server. If the **State** remains **Disconnected** then the connection could not be made.

{% hint style="info" %}
**Applies to:** the DATRAN OPC Client Interface. OPC DA uses Microsoft DCOM.
{% endhint %}

## Check the basics

* Ensure that the OPC server is running. The OPC server is on a remote computer and the computer has been shut down or crashed. The network cable has been physically damaged, pulled out of the wall or pulled out of the computer. The network switch has been turned off or physically damaged.
* The name of the OPC server is misspelled. The name of the computer is misspelled. The IP address is incorrect.
* A vendor specific fatal error has occurred within the OPC server. Check the OPC server to troubleshoot. Use the help, user manual or troubleshooting guide provided by the OPC server vendor.

## Connect to a remote OPC server

1. Check your firewall setting to ensure that DATRAN OPC Client Interface is allowed through the firewall.
2. Open the firewall for TCP port 135 to initiate DCOM communications.
3. If the error message is "Unknown error occurred while instantiating a connection to the server (80040154)", ensure that the Log On properties of the **DATRAN OPC Client Interface** are set to a user that has permission to launch and access the OPC server via DCOM:
   1. Select Start | Run... In the Open... text box, type in **services.msc**.
   2. Scroll down the list until you see **DATRAN OPC Client Interface**. Double click on **DATRAN OPC Client Interface**. Click on the **Log On** tab.
   3. Select the **This account** radio button. Type in the username and his/her password twice.
   4. Click the **OK** button. Right click on **DATRAN OPC Client Interface**. From the popup menu, select **Restart**.

For more information, download and print the document "Using OPC via DCOM with XP SP2 v1.10" from the OPC Foundation website.

## Connections take too long to time out

If it takes too long to timeout from attempting a connection over the network to a remote OPC server (e.g. server down, cable cut, etc.), follow these steps:

1. Select Start | Run... In the Open... text box, type in **DCOMCnfg**. Click the **OK** button.
2. Navigate to **Console Root\Component Services\Computers\My Computer** and right click on **My Computer**.
3. Click on the **Default Protocols** tab. Except for the one you are using, remove all the other DCOM protocols to minimise the DCOM timeouts.
4. Click on the **Options** tab. Change the **Transaction timeout (seconds)** to something small e.g. 3 seconds.
5. Click the **OK** button. Close the Component Services window.

## Bandwidth usage is high

**Bandwidth Usage** should be between 0% and 100%. If it is at 100% for too long and too frequently something has to be done to fix this. The property that most affects Bandwidth usage is the Update Rate of your groups. The higher the Update Rate, the higher the Bandwidth Usage will be. It is recommended that one group be used for one OPC server unless there is a specific need to have certain OPC Client Items on different Update Rates.

## Still not working? Contact QTech

Email <techsupport@qtech.co.nz> with the data server's **State**, the error number, the OPC server you're connecting to, and what you've tried.
