How to ping IP addresses using JavaScript
I want to run a JavaScript code to ping 4 different IP addresses and then retrieve the packet loss and latency of these ping requests and display them on the page. How do I do this? Piskvor You can't do this from JS. What you could do is this: client --AJAX-- yourserver --ICMP ping-- targetservers Make an AJAX request to your server, which will then ping the target servers for you, and return the result in the AJAX result. Possible caveats: this tells you whether the target servers are pingable from your server, not from the user's client so the client won't be able to test hosts its LAN but