|
-
May 25th, 2006, 12:13 PM
#1
Thread Starter
New Member
Detect network shutdown
Hi,
I've got this problem: I have a primary computer connected to the internet with cable; from my computer - from a network adapter - goes a connection to my sister's computer. How can I detect when she closed down her computer and make mine automatically shut down also? - this in VB
This is kind of urgent.
Regards,
Kepler
-
May 25th, 2006, 03:21 PM
#2
Re: Detect network shutdown
Using VB6 you could ping it until it stops responding. You could use my ping class to do it:
http://www.vbforums.com/showthread.php?t=395955
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
-
May 25th, 2006, 05:09 PM
#3
Thread Starter
New Member
Re: Detect network shutdown
Thanks...nice programming.
Cheers,
Kepler
-
May 25th, 2006, 08:43 PM
#4
Re: Detect network shutdown
Or you could put in a router and each computer will work independently.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
May 25th, 2006, 10:32 PM
#5
Re: Detect network shutdown
Ya Al42 hit it on the head - his would be a better approach - they are only like 20-40 bucks.
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
-
May 26th, 2006, 06:29 AM
#6
Thread Starter
New Member
Re: Detect network shutdown
Hi,
Just one problem: I'm using "ICMP.IsAddressAlive"; it only gives me "False" if my sister's computer is shut down from the power (the normal shutdown gives a true active connection).
Wich command should I use in your class?
Regards,
Kepler
-
May 26th, 2006, 08:24 AM
#7
Re: Detect network shutdown
IsAddressAlive should return True if her computer is on, and False if her computer is off. Does it do something else?
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
-
May 26th, 2006, 09:39 AM
#8
Thread Starter
New Member
Re: Detect network shutdown
Hi,
I didn't get a notification of your reply, sorry.
"IsAddressAlive" gives true with the computer on and off - it only returns false if the computer is unplugged from the energy power.
Regards,
Kepler
-
May 26th, 2006, 09:44 AM
#9
Re: Detect network shutdown
I'm speechless. In that case, get yourself a router like everyone else LOL.
Nobody knows what software they want until after you've delivered what they originally asked for.
Don't solve problems which don't exist.
"If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)
2 idiots don't make a genius.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|