RJBuild
asked on
Client Ping via Javascript
Hello!
I need some way to ping an IP using javascript. The ping has to come from the client, hence the JS dependency, and it should work just as if the client ran ping from their command prompt. The solutions I've found work in the case that the pinged computer is running a web server, but when this is not the case the pingers will fail. Does anyone know of a solution that should work for this?
Thanks!
I need some way to ping an IP using javascript. The ping has to come from the client, hence the JS dependency, and it should work just as if the client ran ping from their command prompt. The solutions I've found work in the case that the pinged computer is running a web server, but when this is not the case the pingers will fail. Does anyone know of a solution that should work for this?
Thanks!
ASKER
The issue is that the solution I have now works only when the server accepts web requests. For example, I can ping experts-exchange.com via command line or the script, but if I try some location without a web server, the command line succeeds and the web script fails.
For example, google.com will work in both, but try ns.google.com, which succeeds at the command line, fails on the web page as there is no web server there.
For example, google.com will work in both, but try ns.google.com, which succeeds at the command line, fails on the web page as there is no web server there.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm glad I could help. Thanks for the grade, the points and the fun question.
bol
bol
If you have a solution that works some times, don't bother trying to make it work for every target.