Skip to content

Serverless Chat Client #12

@annovanvliet

Description

@annovanvliet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions