Maui packaged as iOS 17 system failed to send message using udpClient No Route to Host
于晏 彭
5
Reputation points
I have implemented the following code in C#:
IPEndPoint remoteEP = new IPEndPoint(IPAddress.Parse(udpServerIp), udpPort);
udpClient.Send(requestBytes, requestBytes.Length, remoteEP);
However, Packaging it as Android can send UDP messages, when using Maui packaged as iOS 17 system the message fails to send, and I'm getting a "No Route to Host" error. How can I resolve this issue?