Post

Replies

Boosts

Views

Activity

Reply to NWConnection UDP Broadcast not sent out correctly
Hey @eskimo :) Thanks for the response. Some more context: We are trying to discover our own devices in the network. For that, we use a variety of different discovery methods. Bonjour is one of them, alongside others. For certain network configurations, we have to use UDP Broadcasts as a fallback when e.g. mDNS is not available. The datagram we send: local ip: the ip of the sender local port (where we have the listener): 50913 remote ip: broadcast (255.255.255.255) remote port: 50913 datagram: some short identifier string that our devices respond to in a specific format (allowing us to connect to them right after) The datagram we receive: remote ip: the ip of our to-be-discovered device remote port: 50913 local ip: the ip of the initial broadcast-sender local port: 50913 (that's where the listener is running) datagram: a response following a pre-defined format that allows us to filter which of the responding devices are ours and should be connected to The use case is fixed and I cannot change anything about how we discover the devices. We have all the other discovery methods implemented and running, UDP broadcast is the last one that's missing. I really appreciate your help and I hope this information is sufficient. Please let me know if I should clarify.
Dec ’23