@Peter Simpson I added the Permission and get the same result where it only works when using:
Log(Ping("192.168.0.1", "Status", 4, 10, True))
The above Replies 'Host online'
If I change it to something like the following (which is on a different Subnet):
Log(Ping("192.168.5.1", "Status", 4, 10, True))
It replies 'Host unreachable' which is correct. So I know the Status part is working fine.
When using:
Log(Ping("192.168.0.1", "Report", 4, 10, True))
or
Log(Ping("192.168.0.1", "Summary", 4, 10, True))
It replies:
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. --- 192.168.0.1 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 1005ms
However I know the router is online, but still says that 100% packet loss.
If I then use Googles IP address (rather than the domain name) like:
Log(Ping("74.125.237.162", "Report", 4, 10, True))
It works fine:
PING 74.125.237.162 (74.125.237.162) 56(84) bytes of data. 64 bytes from 74.125.237.162: icmp_seq=1 ttl=52 time=29.7 ms --- 74.125.237.162 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 29.758/29.758/29.758/0.000 ms
Seems that when I try and ping something on my network it's failing for some reason even through the devices I am trying to ping are correct.
I even tried to make it ping my computers IP address and it only works with the Status command and not Report/Summary.
I might have to make do with the Status (Host Online/Host unreachable).