Hello,
I am having some trouble with my OPC client code. This OPC client recursively finds all the data nodes on a server and outputs them to a .txt file, for some background.
Recently my client stopped connecting to the OPC server and I believe it may be a problem with the TCP port setup. The connection string is: "opc.tcp://[Computer Name]:4880/CM100 OpcUa" which usually works, and I have confirmed this same string works when using UA expert. When I try to connect I get the error shown in the attached image.
I believe that my client is trying to communicate on 4840, while the server is listening on 4880. Am I correct?
If so what can I use the configure the TCP port that the client communicates on?
If not, what would I be doing wrong?
I've also tested the rest of my code using the public OPC server: "opc.tcp://opcua.demo-this.com:51210/UA/SampleServer"
I am having some trouble with my OPC client code. This OPC client recursively finds all the data nodes on a server and outputs them to a .txt file, for some background.
Recently my client stopped connecting to the OPC server and I believe it may be a problem with the TCP port setup. The connection string is: "opc.tcp://[Computer Name]:4880/CM100 OpcUa" which usually works, and I have confirmed this same string works when using UA expert. When I try to connect I get the error shown in the attached image.
I believe that my client is trying to communicate on 4840, while the server is listening on 4880. Am I correct?
If so what can I use the configure the TCP port that the client communicates on?
If not, what would I be doing wrong?
I've also tested the rest of my code using the public OPC server: "opc.tcp://opcua.demo-this.com:51210/UA/SampleServer"