1

Is it possible to use icmp in javascript? Is there another accurate way to determinate the ping? What would be the alternative if it isn't possible in javascript, I don't believe java or flash are good alternatives.

niklas
  • 143
  • 10
  • Possible duplicate: http://stackoverflow.com/questions/4954741/how-to-ping-ip-addresses-using-javascript TL;DR: No. You need a server-side app. – jonvuri Nov 27 '12 at 13:05
  • no because i want to ping from the client to the server. – niklas Nov 27 '12 at 13:12
  • You asked if it was possible; it's not, and I was simply offering one other way that hadn't ruled out already. – jonvuri Nov 27 '12 at 14:13

1 Answers1

0

This is an OS/native socket level feature that's outside the scope of most Javascript engines. You would need to write something like a browser plugin (which every client would need and would probably have a native component to it).

A Java applet might be possible but I don't know enough on that to comment, that has it's own sandbox rules.

Lloyd
  • 29,197
  • 4
  • 84
  • 98