Hi,
I am struggling to receive multicast UDP packets on an iPad Pro (iOS 15.5) in the context of an ethernet-only lab network.
The packet reception code uses a NWConnectionGroup
configured with a NWMulticastGroup
, as described in https://developer.apple.com/news/?id=0oi77447.
This code works well on a Mac connected to the lab network with a USB ethernet adapter, provided the ethernet adapter interface has the highest priority among connected network interfaces.
To make it work on iOS, I have successfully added the com.apple.developer.networking.multicast
to the app, following the process detailed by @eskimo in https://developer.apple.com/forums/thread/663271
However, on the iPad, the app doesn't receive any data packet on the configured connection group, although no error shows on the console.
I suspected that the issue may be related to a question of network interface selection by the receiving NWConnectionGroup
, but disabling the wifi on the iPad doesn't seem to help.
Searching in the dev forums, I found this message where @meaton wrote You will want to make sure that you test this on a physical device connected to Wi-Fi to know that the Multicast feature is actually working. This makes we wonder if using the Wi-Fi network is mandatory here…
Hence my question: is there a way to receive multicast UDP packets on an ethernet network on an iPad?
Thanks.