Results 1 to 9 of 9

Thread: Detect network shutdown

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    Question 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

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    Re: Detect network shutdown

    Thanks...nice programming.

    Cheers,

    Kepler

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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

  5. #5
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    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.

  6. #6

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    Question 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

  7. #7
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    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.

  8. #8

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    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

  9. #9
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    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
  •  



Click Here to Expand Forum to Full Width