Re: A ping program in javascript?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: A ping program in javascript?

From: Martin Honnen <mahotrash@yahoo.de>
Date: Wed Jul 20 2005 - 19:08:41 CEST

Egil Hansen wrote:

> I want to allow the users to ping a server (gaming server), so
> they can know, how good or bad their connection to it is. Do you see
> any way doing this, so it won't be too much of a hazel for the users
> (e.g. changing security settings/giving my site special permissions)?

No, inside the browser whether you use Java or JavaScript with normal
security settings you can only connect back to the server your document
has been loaded from.
Java 1.5 seems to have some ICMP support now with the method isReachable
of the InetAddress class but unless you sign your applet I don't think
there is any chance to use that method in the browser to check abritrary
hosts.

-- 
	Martin Honnen
	http://JavaScript.FAQTs.com/
Received on Tue Oct 18 02:58:50 2005