I have an app for which Multicast Networking is enabled, so it can find UPnP players on the network. This is working fine on iOS devices, but when I compile for Catalyst and run on a Mac, the discovery fails with the following error:
SSDP discovery did fail with error: Error Domain=UPnAtom Code=0 "Could not bind socket to port" UserInfo={NSLocalizedDescription=Could not bind socket to port}
The error occurs at the stage below, both binding attempts will gave the same error.
// Configure unicast socket: Bind to address on the specified interface (en0) to a random port to receive unicast datagrams
// Configure multicast socket: Bind to port without defining the interface to bind to the address INADDR_ANY (0.0.0.0). This prevents any address filtering which allows datagrams sent to the multicast group to be receives
I validated everything mentioned on this page (https://developer.apple.com/forums/thread/663271) for the Catalyst built app, and it looks fine.
Is this a known incompatibility, or am I missing something?