Home Forums Support Two way client server setup Reply To: Two way client server setup

#1031
Anonymous
Inactive

UDP broadcast should work on Android but you will have to use the subnet specific broadcast address, ie something like 192.168.1.255 (depending on your ip configuration) instead of 255.255.255.255. If this isn’t working we definitely would like to know so if you could confirm that would be appreciated.

UDP broadcast can be quite spammy (in terms of overall network load) so if the number of clients is small you are probably better just looping over the connections in your server side code and sending the packet to each client. Which performs better will depend on the specifics of your network and what you’re sending so you will probably want to experiment. It’s also worth noting that UDP broadcasts ‘can’ be tricky to debug if there is an issue.