UDP multicast connection

Hi, I am working in a new project, I am struggling with a problem, I achieve to receive udp messages in localhost with NWConnection and NWListener, but I need to receive that messages from a cloud server, so I try with NWConnectionGroup and NWMulticastGroup, the reason is because I need that the streaming messages reach many users not necessary in the same wifi point, I can't use unicast because the project wouldn't be viable for the cost, I need to send one message from the server that reach multiple users in different locations, I use the simulator only so I don't need entitlement at the moment, is the class NWConnectionGroup and NWMulticastGroup the correct way for that? there are another options ? where I can find more documentation ? Because I can achieve the connection with udp multicast, thanks

I need to send one message from the server that reach multiple users in different locations

That’s not feasible, but not because any iOS restrictions. The wider Internet simply doesn’t support that type of multicast.

A lot of time and energy was spent trying to get wide area multicasts to work but it did not pan out in practice. To quote The Source of All Truth™:

Achieving IP multicast service over a wider area requires multicast routing. Many networks, including the Internet, do not support multicast routing.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

UDP multicast connection
 
 
Q