Usually, there's no need for using a script to ping the server. Just make sure "Check connection time out" is checked under Connect Options. (Did you have this checked?) If your router's TCP timeout is abnormally short, a timer with a short interval could help, or you could see if you can change the TCP timeout on your router's configuration page.
Last edited by drum; 26/08/10 04:03 AM.