[Q&A]Cannot connect to OpenOPC Gateway Service at XX.XX.XX.XX:7766 - connection failed
2014-01-06 11:46
661 查看
应用环境: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.
参见:http://sourceforge.net/projects/openopc/forums/forum/709251/topic/5093650
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.
参见:http://sourceforge.net/projects/openopc/forums/forum/709251/topic/5093650
相关文章推荐
- Cannot open channel to 3 at election address :3888 java.net.ConnectException: Connection refused (Connection refused)
- 解决Windows7Windows2K8下的"Windows Cannot Connect To The Printer. Access is Denied"
- 解决unix网络编程(第三版)第一个程序connect dennied.问题&Open 'daytiime' service
- 指定的服务并未以已安装的服务存在 Unable to open the Service 'tomcat6' j解决办法
- Spring RmiServiceExporter Can't connect to 127.0.0.2 issue
- 运行tomcat6w.exe ,提示 指定的服务未安装 unable to open the service 'tomcat66'
- 运行tomcat6w.exe ,提示:指定的服务未安装 unable to open the service 'tomcat6'
- Host 'xx.xx.xxx.xxx' is not allowed to connect to this MySQL server
- 指定的服务并未以已安装的服务存在 unable to open the service 'tomcat5
- Win7下tomcat拒绝访问 Unable to open the service 'Tomcat7'
- .xsession-errors:openConnection: connect: No such file or directory cannot connect to brltty at :0
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock.??
- Docker初次安装运行出错:Cannot connect to the Docker daemon at ***/docker.sock. Is the docker daemon running?
- mysqladmin: connect to server at 'localhost' failed;错误解决方法
- Zookeeper昨天还可以启动今天提示: Cannot open channel to 1 at election address /192.168.253.130:3888 java.net.Co
- mysqladmin: connect to server at 'localhost' faile
- 执行docker ps命令,出现 "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. ..."问题
- tomcat6w.exe 运行提示:指定的服务并未以已安装的服务存在 Unable to open the service 'tomcat6'
- tomcat7w.exe ,提示 指定的服务未安装 unable to open the service 'tomcat6'
- mysqladmin: connect to server at 'localhost' failed;错误解决方法