Ping localnetwork always faild on iOS 14.7.1.
win10, iOS builder v3.36.1 iOS SDK 14.5.
if disable remote debug console than ping local network always timeout.Even local network permission is on.
when I enable remote debug console make a build. the ping local network magicaly success.
To reporduce this problem, disable remote debug console in iOS builder,build and run.
In iPhone type local network ip like 192.168.1.1, than iOS will pop a permission window, allow it. than test ping a local ip. will get timeout.here is my code:
=============================================================
public InputField inputField;
public void OnStratPingButton() {
Stopwatch s = new Stopwatch();
s.Start();
var p = new Ping(inputField.text);
Debug.Log("startping:"+ inputField.text);
while (!p.isDone && s.ElapsedMilliseconds < 3000) {
Thread.Sleep(100);
}
Debug.Log("timeout:"+(s.ElapsedMilliseconds) +"|"+p.time);
s.Stop();
}