diff --git a/bundles/org.openhab.core.config.discovery.addon.ip/src/main/java/org/openhab/core/config/discovery/addon/ip/IpAddonFinder.java b/bundles/org.openhab.core.config.discovery.addon.ip/src/main/java/org/openhab/core/config/discovery/addon/ip/IpAddonFinder.java index 80a1063ec0e..e4823ed7e03 100644 --- a/bundles/org.openhab.core.config.discovery.addon.ip/src/main/java/org/openhab/core/config/discovery/addon/ip/IpAddonFinder.java +++ b/bundles/org.openhab.core.config.discovery.addon.ip/src/main/java/org/openhab/core/config/discovery/addon/ip/IpAddonFinder.java @@ -331,7 +331,8 @@ private synchronized void startScanJobs() { } private void doIpMulticastScan(AddonInfo candidate, String type, String request, String requestPlain, - String response, int timeoutMs, InetAddress destIp, int destPort, int listenPort, String localIp) { + String response, int timeoutMs, @Nullable InetAddress destIp, int destPort, int listenPort, + String localIp) { try (DatagramChannel channel = (DatagramChannel) DatagramChannel.open(StandardProtocolFamily.INET) .setOption(StandardSocketOptions.SO_REUSEADDR, true).bind(new InetSocketAddress(localIp, listenPort)) .setOption(StandardSocketOptions.IP_MULTICAST_TTL, 64).configureBlocking(false);