[KNX] No connection to bus after server restart (router mode)
See original GitHub issueExpected Behavior
If OpenHAB starts it should correctly connect to the KNX bus and update all items with the current state, even after a full server restart. I never experienced this issue while using the KNX 1 binding.
Current Behavior
Weird but true story…
After a restart of my server (Windows Server 2012), OpenHAB is not able to connect to the KNX bus correctly.
Polling, reading and writing data always fails. Restarting the KNX binding does not help (bundle:restart org.openhab.binding.knx).
If I launch ETS5, which is also installed on the server and I open the “Bus”-tab (below), so that it discovers the available connections, and restart the bundle after that, it connects correctly. Everything is up and running afterwards.

My interface is configured as follows:
Bridge knx:ip:MDTIP "MDT IP Interface" [ type="ROUTER", localIp="192.168.50.100", readingPause=50, responseTimeout=10, readRetriesLimit=3, autoReconnectPeriod=1, localSourceAddr="1.2.1" ]
I included some notes on my actions in the log file. I marked them with short lines of dashes (--------------). Log file: KNXIssue.txt
Steps to Reproduce
- Restart complete server (Windows Server 2012).
Your Environment
- OS: Windows Server 2012
- OpenHAB: 2.4.0-SNAPSHOT build 1422
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)

Top Related StackOverflow Question
@AngelosF,
Normally, multicasting always is enabled at your NIC. There are many other standards that uses multicasting over other multicast IPs. UPnP/DLNA for example, uses multicasting for streaming Media (239.255.255.250).
@AngelosF, absolutely no problem! Had to look twice already. Fatally confused
localIpandipAddress. 😭Yes
localIpis used, if you have two or more Network Interfaces, then you can determine with which interface the KNX binding should communicate. If localIp is not set, the binding uses the primary Ipv4 host address. It does not matter if KNX Binding is configured for ROUTER or TUNNEL mode. See hereYou are right, that was just wrong! Thanks for the hint. I have corrected this in my upper comment and replaced the
localIpvariable withipAddress. And explaned the full Story with an example of parallel multiple Router KNX Networks.I have not expressed myself exactly, nothing will be overwritten… The documentation is correct. I have explained it in the upper comment more accurate and correct
You are right, unless specifically directed to
forward everything, the ROUTER only forwards the addresses used in the ETS project.forward everything- ROUTER forwards everything.block- ROUTER blocks everything.filter- ROUTER builds a internal filter table based on addresses used and connected in your ETS project. Here you need a dummy application for addresses which should be forwarded but not connected in ETS.