Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

i am running a server side application which receives data of ping done from client side to certain ip addresses. Currently a person goes to these clients and does the ping manually. Can i automate this process of client running the ping program through javascript or any client side language ?

I want to make the client automatically ping a few ip addresses, then extract the data from the ping request and then feed this data to the server so it can be recorded. Is this possible ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
168 views
Welcome To Ask or Share your Answers For Others

1 Answer

i want to run a screipt which makes the clients machine send a ping request to these sites and the latency and package loss needs to be reported.

I don't think you can get hold of such low-level information from within Javascript.

What you could do is speed tests in the style of http://speedtest.net, which send data back and forth using JS or Flas. However, I expect a proper speed test is not trivial to implement. I think there are providers who re-sell their ready-made speed testing solutions if that's an option.

Other than that, depending on your situation, maybe consider writing an executable program that calls the system's ping command and transmits the results to you. That would require client-side installation though, of course.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...