pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
I need some help with this, I'm not a software developer!
I need a tiny little program for XP/Vista that sits in the system tray and simply is red when the internet is not connected (can be circle, square, whatever) and green when it is connected.
My idea behind it is to use the ping command, ping a very reliabe website on the internet (bbc, google etc) and if there is a responce, green. If error, red.
Where do I start?
|
paul.mitchell1984
Member
Registered: 31st Aug 06
Location: Wakefield
User status: Offline
|
are you using a laptop on wirless? if so why do you need this as theres a wireless icon in menu.
|
John
Member
Registered: 30th Jun 03
User status: Offline
|
There will 100% be a program to do this I jus haven't found it yet.
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
I think he wants to know if his DNS is working or not rather than his actual net connection if you see what I mean.
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
quote: Originally posted by John
There will 100% be a program to do this I jus haven't found it yet.
I found one but it was last updated in 2001...
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
No, I need it to see if the computer is connected to the internet, not a network.
Not fussed if it's done on DNS name (www.bbc.co.uk) or IP address (1.2.3.4)
Sam, link?
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
http://www.moxom-software.co.uk/default.htm
|
Paul_J
Member
Registered: 6th Jun 02
Location: London
User status: Offline
|
I can knock this up for you in minutes if you still want it pow.
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
Paul - would be fantastic, what Sam showed me was brilliant but ideally I need the "icon" in the tray to be bigger, ie a circle the whole icon size that is filled red when the ping fails, green when it is a success, updated every say 10 seconds?
|
_Allan_
Member
Registered: 24th Mar 04
User status: Offline
|
I need a similar app please gents, if someone can russle one up.
I have an O2 Wireless III router that after some idle time the DNS seems to fail. Although the laptops are still connected to the router the internet addresses cannot be resolved. It takes a reboot to work again. I've changed the DNS to use Open DNS servers but still no change. The box seems to fail after being idle. If the net is constantly being used it is fine. I could do with the app to test the DNS regularly.
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
Allan - tell O2 about it, they can log in to your router remotely and sort anything that needs sorting in the settings for it.
|
Paul_J
Member
Registered: 6th Jun 02
Location: London
User status: Offline
|
ok, i'll have to wait till tonight really - but i'll do it later.
|
DaveyLC
Member
Registered: 8th Oct 08
Location: Berkshire
User status: Offline
|
Here you go POW
http://www.dohc.co.uk/temp/corsa/Pows%20Internet%20Monitor.zip
It pings google.co.uk every 30 seconds, and will display a balloon tip if there is no response.
For anyone who might be interested heres the ping code:
Ping pingSender = new Ping();
PingOptions pingOptions = new PingOptions();
PingReply pingReply = pingSender.Send("google.co.uk");
if (pingReply.Status != IPStatus.Success)
{
notifyIcon.BalloonTipText = "POW, THERE IS NO INTERNET!";
notifyIcon.ShowBalloonTip(30000);
}
You need to use the System.Net.NetworkInformation resource.
[Edited on 07-10-2009 by DaveyLC]
|
_Allan_
Member
Registered: 24th Mar 04
User status: Offline
|
quote: Originally posted by Sam
Allan - tell O2 about it, they can log in to your router remotely and sort anything that needs sorting in the settings for it.
Yeah I thought about that but I have SuperUser access and have checked all the settings. Nothing is in that would account for this. I'm pretty sure it's a bit of a dodgy box but it is a temporary replacement anyway and can't be arsed getting another one off them. I will have a look at Davey's app
[Edited on 07-10-2009 by _Allan_]
|
willay
Moderator Organiser: South East, National Events Premium Member
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
quote: Originally posted by _Allan_
I need a similar app please gents, if someone can russle one up.
I have an O2 Wireless III router that after some idle time the DNS seems to fail. Although the laptops are still connected to the router the internet addresses cannot be resolved. It takes a reboot to work again. I've changed the DNS to use Open DNS servers but still no change. The box seems to fail after being idle. If the net is constantly being used it is fine. I could do with the app to test the DNS regularly.
What were you using for DNS? your O2 Router?
|
_Allan_
Member
Registered: 24th Mar 04
User status: Offline
|
Yeah but I have the O2 router set to use Open DNS servers. It works fine on my Wireless II box at home. This box is in the gf's.
It makes no difference if Open or O2 servers are used. The DHCP lease time is default to 24 hours and cannot be changed.
That's about as much as I can work out.
|
willay
Moderator Organiser: South East, National Events Premium Member
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
heh change the DNS settings on your machines to use OpenDNS or O2's DNS servers instead of the actual router.
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
The only problem with that willay is then you can't resolve to other computers with dns names inside the network?
|
willay
Moderator Organiser: South East, National Events Premium Member
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
a) I would presume thats not a problem for a network that has a o2 adsl router at the top
b) Netbios does COMPUTER NAME res, can use 'ping -a 1.1.1.1' to resolve ip addresses to names on your local subnet.
|
_Allan_
Member
Registered: 24th Mar 04
User status: Offline
|
I'll give it a try. Thanks.
|
John
Member
Registered: 30th Jun 03
User status: Offline
|
Can you set the DNS servers on the wireless box 3 with superuser?
I've got o2 and my router gives out the open dns ip's but I've not got an o2 router.
|
pow
Premium Member
Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
|
Davey da man
|
DaveyLC
Member
Registered: 8th Oct 08
Location: Berkshire
User status: Offline
|
No probs
|
oceansoul
Member
Registered: 19th Jun 06
Location: Sunbury, Surrey
User status: Offline
|
Doesnt Vista do this? i.e. on the networked computers icon there is a lil globe that appears when connected to net
|
DaveyLC
Member
Registered: 8th Oct 08
Location: Berkshire
User status: Offline
|
Yeah vista and windows 7 does it, but its for his Nan who uses XP.
|