c# - How to connect to remote OPC server -


i trying connect opc server present in remote pc in lan. here code

objopcserver.connect(opcservername, "192.168.1.5"); 

192.168.1.5 ip of remote pc. want know put username & password of remote pc connect to, since remote pc contains username & password.

thanks

if use opc da, have opc dcom settings. , if connecting remote pc, make sure have same user name in both local , remote machine , user have rights access opc enum service.

check link, contains details related opc remote settings.

dcom settings


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -