CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 1999
    Posts
    535

    Detecting if a computer (on my network) is on.

    I have a list of computer names for my network and I need to check each one of those to see if they are active. Kind of like doing a ping (but I can't use CPing, or CSocket) but I need an alternate method. Can someone give me some hints here?

    THanks in advance...

    -Cube

  2. #2
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: Detecting if a computer (on my network) is on.

    If you can use the ICMP set of functions (IcmpSendEcho among others), you can roll your own "ping".

    Of course, whithout knowing WHAT you can use, it's hard to answer. If CPing/CSocket out because you can't use MFC ? or because you can't use sockets, or can't use TCP/IP or ?


  3. #3
    Join Date
    Apr 2001
    Posts
    514

    Re: Detecting if a computer (on my network) is on.

    Hi,

    Take a look at this post I did for a guy who wanted to detect all PC's on a network. It might be possible for you to use this to solve your problem.

    http://www.codeguru.com/cgi-bin/bbs/...age=&view=&sb=


    Hope this helps,
    Lee.


    Relax and Enjoy!!!

    P.S. You would be amazed at how few people have the common decency to say if an answer helped (or not).

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

Featured