-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Wit the intention to implement a Serverless Chat client, I want to use mdnsjava to register my application and to discover other clients in my local network.
Both works correctly in the beginning, but within 2 minutes, my client is not found anymore by other clients in my network.
How can I keep my registration active? Do I have to start an extra service, or implement extra functions in MyPresenceServiceListener?
discoverId = mDNSService.startServiceDiscovery( new Browse(serviceTypes), new MyPresenceServiceListener());
service = new ServiceInstance(serviceName, 0, 0, presence.getPort(), host, addresses, presence.toMap());
registeredService = mDNSService.register(service);
Services Successfully Registered: Service ("tester1@mymachine._presence._tcp.local." can be reached at "MYMACHINE.local." [MYMACHINE.local./192.168.2.9, MYMACHINE.local./fe80:0:0:0:e5c1:5739:49ad:3b0c] on port 2300