Ping localnetwork always faild on iOS 14.7.1.
ping local network always timeout, ping internet always success.Even local network permission is on or off.
so strange.
To reporduce this problem, please type local network ip like 192.168.1.1, than iOS will pop a permission window, allow it. than test ping a local a local ip. 90% chance I get timeout.
here is my test code, only happened on iOS build:
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();
}
What happen on you guys device? iOS bug? anyone help me please