IHC connection fail

Hi…

I just started from scratch, but i have an issue with my IHC binding… i get this log when i try to connect, anyone who can give me a hint?

2018-09-17 21:21:25.026 [INFO ] [nhab.binding.ihc.internal.IhcBinding] - Connecting to IHC / ELKO LS controller [IP=‘192.168.1.30’ Username=‘admin’ Password=’******’].

2018-09-17 21:21:25.041 [WARN ] [nhab.binding.ihc.internal.IhcBinding] - Can’t open connection to controller

org.openhab.binding.ihc.ws.IhcExecption: org.apache.http.conn.HttpHostConnectException: Connect to 192.168.1.30:443 [/192.168.1.30] failed: Connection refused (Connection refused)

at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:103) [230:org.openhab.binding.ihc:1.12.0]

at org.openhab.binding.ihc.ws.IhcAuthenticationService.authenticate(IhcAuthenticationService.java:54) [230:org.openhab.binding.ihc:1.12.0]

at org.openhab.binding.ihc.ws.IhcClient.openConnection(IhcClient.java:195) [230:org.openhab.binding.ihc:1.12.0]

at org.openhab.binding.ihc.internal.IhcBinding.connect(IhcBinding.java:160) [230:org.openhab.binding.ihc:1.12.0]

at org.openhab.binding.ihc.internal.IhcBinding.execute(IhcBinding.java:198) [230:org.openhab.binding.ihc:1.12.0]

at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [194:org.openhab.core.compat1x:2.3.0]

at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [194:org.openhab.core.compat1x:2.3.0]

Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 192.168.1.30:443 [/192.168.1.30] failed: Connection refused (Connection refused)

at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) ~[?:?]

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) ~[?:?]

at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) ~[?:?]

at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[?:?]

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) ~[?:?]

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) ~[?:?]

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[?:?]

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ~[?:?]

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[?:?]

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) ~[?:?]

at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQ(IhcHttpsClient.java:119) ~[?:?]

at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:87) ~[?:?]

... 6 more

Caused by: java.net.ConnectException: Connection refused (Connection refused)

at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:?]

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:?]

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:?]

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]

at java.net.Socket.connect(Socket.java:589) ~[?:?]

at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337) ~[?:?]

at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ~[?:?]

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) ~[?:?]

at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) ~[?:?]

at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[?:?]

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) ~[?:?]

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) ~[?:?]

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[?:?]

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ~[?:?]

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[?:?]

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) ~[?:?]

at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQ(IhcHttpsClient.java:119) ~[?:?]

at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:87) ~[?:?]

... 6 more

Please check your IP number and network configuration. Connection refused means that there is nothing listening on that address:port. Could also be a firewall blocking connections.

My cfg file:

Controller IP address

ip=192.168.1.30:443

Username and password for Controller

username=admin
password=xxxxxxxxx

Timeout for controller communication

timeout=5000

I have portforwarding for port 8080 from the openhabian and 443 from IHC

Port forwarding configured in what? Router maybe?

Hi

I have opened the ports in the router.

Could it be something regarding JAVA in the Raspberry end Openhabian?

OpenHAB can’t connect to 192.168.1.30:443 as server (IHC controller?) is refusing the connection. Because you have defined some port forwarding rules to your router, are IHC controller and openHAB in different networks? If yes, you should enable service view access to “internet” level from IHC controller admin view. Otherwise IHC controller refuses the connection. If IHC controller and openHAB server are in the same network (192.168.1.x), then “local network” level access is enough for service view.

Everything seems to work now… i just wainted for 2 days, and suddently, without doing anything the controller just connected… Thanks for your help