I need to realize OPC server, on Windows XP. I download OPC library, and OPC client (application not library). I realize my OPC server, when i use client on my machine all runs normally. But when i connect from remote computer i do not see my server. I understand that the technology dkom potentially dangerous. I get this manual, and did everything on it, but nothing changed. I disable my windows firewall, add 135 port in windowds firewall exception. In dcomcnfg grants local and remote access to "anonymous" and "all" groups, grants local and remote launch & activation to "administrators" and "all" groups. And nothing changed, i did not give the right of my DCOM component because i thought the following: i get list of servers not work with them. In my microsoft network no domain and active directory, can i achieve the desired result in this case?
问问题
3501 次
2 回答
3
OPC DA over DCOM 可能会出现许多问题。从我的脑海中,您可以尝试以下操作:
- 检查 OPCEnum 服务是否在服务器计算机上运行。该服务向潜在客户端提供 OPC 服务器列表。它是 OPC 基金会可再发行的一部分。
- 确保您应用的任何 dcomcnfg 更改都在服务器和客户端计算机上完成。
- 如果您只使用本地用户,请尝试为服务器和客户端计算机上的 OPC 访问创建一个专用用户,例如称他为“opc”。然后在 dcomcnfg 的“COM 安全”部分授予该用户所有权限。将服务器和客户端都作为“opc”运行。确保本地用户以自己的身份进行身份验证(请参阅本地策略中的“安全选项”)。
- 如果一切都失败了,解决方法是在客户端计算机上部署服务器,注册它,然后删除它。为我工作过一次。
于 2011-03-23T09:22:58.467 回答
0
最常见的错误是 DCOM 没有正确配置。我发现本指南非常有用:
此其他指南也让您对远程 OPC DA 有一个深刻的了解:
当我尝试与另一台 PC 中的远程 OPC 服务器通信时,我遇到了类似的问题。请注意第二个指南(2.Users and Groups)的第2点,确保两台PC使用相同的用户帐户和相同的密码登录。
2.1 域和工作组在工作组中工作时,需要在连接所涉及的每台计算机上本地创建每个用户。此外,每个用户帐户必须具有相同的密码才能进行身份验证。在大多数情况下,空白密码无效。因为可能需要对每台计算机上的本地安全策略进行更改,所以工作组内的远程连接可能是最不安全的连接。有关详细信息,请参阅本地安全策略。在域中工作时,不需要将本地用户和组添加到每台计算机。域使用包含用户帐户和安全信息的中央数据库。如果首选在域中工作,则网络管理员可能必须实施更改。混合域和工作组将要求两台计算机都使用两个选项中的较小者进行身份验证。这意味着域计算机将需要与它在工作组中时相同的配置。必须将本地用户帐户添加到域计算机。
于 2015-06-16T10:22:38.830 回答