I am making an application for UDP communication.
- use CocoaAsyncSocket
- use multicast
However, the behavior changes in the following environment.
If connect to your Mac with a Lightning cable while running the iOS app (UDP transmission / reception is working without problems), the transmission / reception during operation will not work.
-For iPhone (cellular),
Mobile data communication ON : Do not send / receive
Mobile data communication OFF: Send and receive
When connected to a Mac, transmission / reception does not work, so real-time debugging is not possible.
When performing UDP communication (multicast)
Are there any settings that need to be made on a Mac or iOS device?
Development environment:
Xcode 11.3
MacOS 10.15.2 (Catalina)
iPhone Cellular iOS13.3
iPad Pro Wifi iOS13.3
- iPhone / iPad access point is not connected to internet.
- Mac access point is connected to internet.