[Q&A]Cannot connect to OpenOPC Gateway Service at XX.XX.XX.XX:7766 - connection failed

应用环境:OpenOPC 1.2 (其中OPC SERVER:Win7 64+python2.7.6; OPC CLIENT:Win7 32+python2.7.6)

Q:当远程访问OpenOPC gateway service时提示:Cannot connect to OpenOPC Gateway Service at x.x.x.x:7766 - connection failed
其中x.x.x.x是运行 OpenOPC gateway service的计算机
A:修改 运行 OpenOPC gateway service的计算机的环境变量OPC_GATE_HOST的值为该计算机的IP地址,然后重启 OpenOPC gateway service。
 
这是OpenOPC作者barry_b的解答原文:
In OpenOPC 1.2.0 you can solve this problem by setting system environment variable OPC_GATE_HOST equal to the IP address of the interface you want the Gateway Service to listen on. Then re-start the Gateway Service for it to pick up the new setting.

The OPC_GATE_HOST setting was added in 1.2.0 in order to support machines that have multiple ethernet interfaces. By setting this you can specify which interface the Gateway Service listens on. But unfortunately due to an oversight on my part, the default value for OPC_GATE_HOST supplied by the installer sets it to localhost. Thus until you specifically set OPC_GATE_HOST your Gatetway Service will only be listening on 127.0.0.1. In the next release of OpenOPC I will add a new feature where you can specify OPC_GATE_HOST as "*" thus telling it to a listen on all interfaces. This will be the default supplied by the installer. But for now, just set it manually to be your box's IP addresses.


转载于:https://www.cnblogs.com/Amagasaki/p/3506921.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
您遇到的错误信息"failed to connect to '192.168.80.121:18888': Connection refused"表示连接被拒绝。这可能是由于以下几个原因导致的: 1. 网络连接问题:请确保您的计算机与目标主机之间有可用的网络连接。检查您的网络设置、防火墙和路由器配置,确保没有阻止与目标主机的通信。 2. 目标主机未开放相应端口:如果目标主机没有开放18888端口,您将无法连接到该主机。您应该确认目标主机上的服务是否正在监听该端口,并且没有被防火墙或其他网络设备阻止。 3. 目标主机上的服务未启动:如果目标主机上的服务未启动,您将无法建立连接。请确保目标主机上的服务正在运行,并且没有出现任何错误或故障。 请根据以上几点进行排查,以确定导致连接被拒绝的原因。如果问题仍然存在,请参考引用和引用中提供的链接,了解如何处理"Connection refused"错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [ssh: connect to host 192.168.136.130 port 22: Connection refused,Fodera 远程连接失败](https://download.csdn.net/download/weixin_38661100/14889097)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Get value from agent failed:cannot connect to [[192.168.121.128]:10050]:[111Connection refused]]](https://blog.csdn.net/qq_40907977/article/details/102663279)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值