How can I make a web application application Javabuilt using Spring Bootfor discovery using zeroconf?
I tried the following with JmDNS, but it does not work:
@Bean
public JmDNS jmdns() {
try {
JmDNS jmdns = JmDNS.create(InetAddress.getLocalHost());
ServiceInfo serviceInfo = ServiceInfo.create("_http._tcp.local.", "appName", port, "path=index.html");
jmdns.registerService(serviceInfo);
return jmdns;
} catch (final Exception e) {
logger.error(e.getMessage());
return null;
}
}
After that, I expected to see this service in the Windows 10 network overview, but it does not appear there.
Edit
The application is indicated in the avahi browser, which shows that it somehow works.
But my goal is to show it in a review of Windows network services.
source
share