Hey Guys, Some times, I'm facing a peculiar problem with the BSNL Teracom modem.
The connection to internet will be lost and will not be able to connect back untill and unless I reboot the
router.
I run a website and if i'm outside my home or out of town, and if the above situation occurs, the site will not be available untill some one reboots the router.
(And in fact, I cannot do it remotely if my router is non responsive)
I had this need to develop a service which will do this job to me.
I always have a machine running, so that the service will check and restart the router as necessary.
Now I have developed this
windows service, which can be used for 2 options.
1. Check for active internet connection at given Ping Interval. Check to the internet is done by pinging an external IP address (say BSNL
DNS,
Google IP address etc).
If unable to ping, it is considered that internet connection is not available. Now the service will wait for 3 retries to ping again to the external IP, but now with a lesser interval of time. Even after this 3 retries if the internet connection is not available, it will reboot my modem/router.
2. I've also added an option to reboot the router at specific interval of time. Irrespective of internet connection availablity, it will reboot the router.
Since many people in this forum (people who have night unlimited download between 2:00AM to 8:00AM) were looking for a software/tool to restart the modem automatically at specified time (02:05AM and 07:55AM), I've added this option to my service.
Once you install the service to the default directory, you have to configure the settings for the first time (And later it can also be changed on the fly even if the service is running).
Open the application configuration file - NetChecker.exe.config in "C:\Program Files\Kestrel\Net Checker\" directory
Edit the file to match your modem settings (Replace the text between " " in the value field with your details)
To restart the modem automatically at specified time, enter the time in 24 hour format in the RebootRouterTime1 value field.
You can use RebootRouterTime2 and RebootRouterTime3 to reboot the router at other two different times (if required). If you dont need rebooting the router, keep all the three values RebootRouterTime1, RebootRouterTime2, RebootRouterTime3 to "".
Now go to Start - Run - Type services.msc in the text field and press enter.
Scroll down to the middle and you will find a service by name Net Checker (just above Net Logon service).
Right click the service and click Start. And you are good to go..
Please email me if you need the tool.
The service will keep an eye on the internet connection, and also restart the router at the time you specified.
The type of modem I used is Teracom - T2-B-Gawvi.4U10Y-BI This service will also work for other types of modem, if the modem supports telnet administration.
If you are using a modem other than the one specifed above, you have to identify the command to reboot your router once by doing a telnet session and put the command in the config file instead of the system restart command, which I have put in the config for the Teracom modem.
If you have any doubts or questions on this, please feel free to contact me via email -
[email protected]
Thanks all. Hope it helps.
Regards,
Vinay