AirPlay fails when Mac is connected to iPhone Personal Hotspot
I’m using AVRoutePickerView to route audio from an iPhone app to a Mac with AirPlay Receiver enabled.
What works
When the iPhone and Mac are connected to the same Wi-Fi network, AirPlay routing works normally.
Routing audio back to the iPhone speaker or to connected AirPods over Bluetooth also works correctly.
What fails
When the iPhone provides a Personal Hotspot and the Mac connects to that iPhone’s hotspot, the Mac still appears as an available destination in AVRoutePickerView.
However, selecting the Mac fails with:
Unable to connect to “[Mac Name]”
Questions
-
Is AirPlay routing from an iPhone hosting a Personal Hotspot to a Mac connected to that hotspot a supported network topology?
-
If it is supported, are there any additional
AVAudioSession, networking, entitlement, or AirPlay configuration requirements for this scenario?
The fact that the Mac is successfully discovered and displayed by AVRoutePickerView, but the connection itself fails, is the part I’m particularly trying to understand.
Thank you for any guidance on the expected behavior here.