I intend to build an application that will run on several devices and its main task is storing and presenting data. This application will be deployed to several devices. These various instances should exchange and sync their data with the other instances in the (W-)LAN. However, their should be no central server and, if possible, the network infrastructure should not have to be altered.

How can I get the instances to find each other when they are in the same network? I was thinking about utilizing multicast to have the devices find each other and then establish a direct connection. Is their any other way of going about this? I would like to make the approach work on as many device types (especially smartphones and PCs) as possible.

closed as off-topic by Ron Maupin Nov 18 '18 at 14:23

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "NE is a site for to ask and provide answers about professionally managed networks in a business environment. Your question falls outside the areas our community decided are on topic. Please visit the help center for more details. If you disagree with this closure, please ask on Network Engineering Meta." – Ron Maupin
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Unfortunately, questions about programming and applications are off-topic here. You could try to ask this question on Stack Overflow. – Ron Maupin Nov 18 '18 at 14:23

Multicast for discovery and then a direct connection is a good approach.

Without any server there's probably no better way. Using a registration/directory server could enable the devices to find each other across subnets - often, wired LAN and Wi-fi devices sit on different subnets.

Check the local firewalls and configure them to allow receiving the discovery multicast and connecting directly.

Not the answer you're looking for? Browse other questions tagged or ask your own question.