opcuanet-samples
opcuanet-samples copied to clipboard
Connecting to remote classic OPC DA server
Hi Team,
I am trying to connect to a classic OPC DA.
I can connect when server is local but facing problems while connecting to remote OPC DA.
when I try to discover servers then for local it works fine, but for remote it gives below error
var discoveryClient = new OpcClassicDiscoveryClient("
Can you please share some sample configuration with code example that needs to be made on the client or server, ports that needs to opened etc
In the end, I would like to create a container which will run on linux to connect to OPC DA server
Hi @mukeshhope,
such an error could occur if the machine where you are using the OpcClassicDiscoveryClient
, or the machine where the OPC Classic Server is running, doesn't have the OPC Core Component Redistributables installed for the architecture in which your process runs (x86 or x64). You can download them from our docs site.
If it still doesn't work after installing the redistributables and your process is running as x64 (64-bit), please try running it as x86 (32-bit) instead.
Please also note that the OPC Classic connectivity (OpcClassicDiscoveryClient
, or OpcClient
using a opc.com:
URL) can only work on Windows machines as it uses a Windows-only technology (Component Objet Model). However, because connecting a OpcClient
using a opc.com:
URL creates a OPC UA Wrapper Server on the local machine, it would be possible to run such a wrapper server on a Windows machine, and then use the OpcClient
on a Linux machine to connect to that OPC UA Wrapper Server.
The Wrapper server is automatically started when the OpcClient
connects to the OPC Classic server, and uses the port specified in the URL to listen for incoming OPC UA connections.
For more information about how to connect to OPC Classic servers, you can refer to our documentation. Thanks!