Knx connection error - yet it is working

I had to recover from a server crash and set up oh2 from scratch and copied my settings from my backup.
Now I have the odd behavior that the log is flooded with error messages (see below) but the knx connection is working fine.
Anyone know what is going on? makes it hard to read the log in case of a real problem (which I still have)

     [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.0.110:3671: communication failure on connect
java.net.BindException: Die angeforderte Adresse kann nicht zugewiesen werden (Bind failed)
        at java.net.PlainDatagramSocketImpl.bind0(Native Method)[:1.8.0_144]
        at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:93)[:1.8.0_144]
        at java.net.DatagramSocket.bind(DatagramSocket.java:392)[:1.8.0_144]
        at java.net.DatagramSocket.<init>(DatagramSocket.java:242)[:1.8.0_144]
        at tuwien.auto.calimero.knxnetip.ClientConnection.connect(ClientConnection.java:147)[191:org.openhab.binding.knx:1.9.0]
        at tuwien.auto.calimero.knxnetip.KNXnetIPTunnel.<init>(KNXnetIPTunnel.java:131)[191:org.openhab.binding.knx:1.9.0]
        at tuwien.auto.calimero.link.KNXNetworkLinkIP.<init>(KNXNetworkLinkIP.java:142)[191:org.openhab.binding.knx:1.9.0]
        at org.openhab.binding.knx.internal.connection.KNXConnection.connectByIp(KNXConnection.java:292)[191:org.openhab.binding.knx:1.9.0]
        at org.openhab.binding.knx.internal.connection.KNXConnection.connect(KNXConnection.java:179)[191:org.openhab.binding.knx:1.9.0]
        at org.openhab.binding.knx.internal.connection.KNXConnection$ConnectTimerTask.run(KNXConnection.java:520)[191:org.openhab.binding.knx:1.9.0]
        at java.util.TimerThread.mainLoop(Timer.java:555)[:1.8.0_144]
        at java.util.TimerThread.run(Timer.java:505)[:1.8.0_144]

Is the server ip the same as before the crash?

I guess that in knx.cfg

localIp=

is set to the wrong address.

Same IP - 192.168.0.110 was and is the server IP.
in knx.cfg it is set to localhost.

#
# KNX gateway IP address
# (optional, if serialPort or connection type 'ROUTER' is specified)
knx:ip=127.0.0.1

# KNX IP connection type. Could be either TUNNEL or ROUTER (optional, defaults to TUNNEL)
# Note: If you cannot get the ROUTER mode working (even if it claims it is connected),
# use TUNNEL mode instead with setting both the ip of the KNX gateway and the localIp.
knx:type=TUNNEL

# KNX gateway port (optional, defaults to 3671)
knx:port=3671

# Local endpoint to specify the multicast interface, no port is used (optional)
knx:localIp=127.0.0.1

# Serial port of FT1.2 KNX interface (ignored, if ip is specified)
# Valid values are e.g. COM1 for Windows and /dev/ttyS0 or /dev/ttyUSB0 for Linux
#knx:serialPort=/dev/ttyS0

# Pause in milliseconds between two read requests on the KNX bus during
# initialization (optional, defaults to 50)
#knx:pause=20

# Timeout in milliseconds to wait for a response from the KNX bus (optional,
# defaults to 10000)
#knx:timeout

# Number of read retries while initialization items from the KNX bus (optional,
# defaults to 3)
knx:readRetries=5

# Seconds between connect retries when KNX link has been lost
# 0 means never retry, it will only reconnect on next write or read request
# Note: without periodic retries all events will be lost up to the next read/write
#       request
# (optional, default is 0)
knx:autoReconnectPeriod=60

do you use knxd?
if not: set that line to the remote IP of the KNX Tunneling interface (which model do you use?)
if yes: make sure that knxd is running (optionally: configure knxd to act as a Router and switch knx.cfg to TYPE=ROUTER)
Also: in OH2 with individual service config files, don’t use the binding name (knx=) in the config file.

ip=192.168.0.110
type=TUNNEL
port=3671
localIp=127.0.0.1
readRetries=5
autoReconnectPeriod=60
ignorelocalevents=true

edit…

ok… check your /var/lib/openhab2/config/org/openhab/knx.config for stale entries

And please…

localIp is not the loop device :wink: I’m pretty sure this won’t work as expected. instead of this, try 192.168.0.110.

If using knxd or eibd, I would prefer ROUTER mode (you will have to change configuration of knxd/eibd for this)

Well, the error magically disappeared… and the knx binding still works fine.
I am actually using eibd compiled a while back and it keeps working fine for me… so no reason to change.