I'd like to get some input from users and see what they think of this program. Here is some info about it.
What is it:
I created this program with an intention to make it easier for users to be able to reset their network. My parents always called me because they can't connect to the internet intermittently and I would always have to drive over to unplug the modem & router and just powercycle them only to be back on the road to my house. A 30 second fix that took 30 mins out of my way. Anywho, after alot of thought I have come up with this application. Basically when your internet goes down, run the program and it restarts the device\s.
How does it work:
1. Gets your network information
2. Attempts ping requests to a series of sites
3. If ping is successful then it prompts you it can't find a problem, if it is unsuccessful, it runs several tasks to try and resolve it.
Assuming ping fails
A: Attempts to establish a connection with your modem
A1:If it can establish a connection, it sends an arbitrary command that forces the modem to restart
B:If it can't establish a connection, it attempts to establish a connection with your router
B1:If it can establish a connection with the router, it attempts to release and renew your IP
B2:If it can't establish a connection with the router or your modem, then you get a messagebox that prompts you t make sure all connections are securely plugged in and to try again. If it still fails, then at that point you're probably having ISP issues
Restrictions\Limitations
1. This is written in Win32 API so therefore, it's not compatible with mac and *nix
2. It's assuming your modem configuration page is at 192.168.100.1 (which is default for MOST modems)
3. The arbitrary command that resets the modem AFAIK works for Motorola Surfboard (cable) modems, but may not necessarily work for other modems.
4. Probably won't work if you have a hacked or modified firmware
Note:
Not sure what requirements there are for cable companies\modems outside of the US. This should work with most docsis motorola modems.
Please let me know any suggestions you may have and your thoughts on this.