Finding active computers in local network.

This is a discussion on Finding active computers in local network. within the Linux Programming forums, part of the Platform Specific Boards category; Hi guys! How can I find out what computers in my local network? I need to implement something similar to ...

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    1

    Finding active computers in local network.

    Hi guys!
    How can I find out what computers in my local network? I need to implement something similar to this:

    nmap -sP 192.168.0.0/24
    But need to implement it using pure C code without calling system().

    nmap works pretty fast it doesn't look like it uses usual ping.

    Thanks.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,854
    Well between using wireshark and looking at the source code for nmap (isn't open source grand), I'm sure you should be able to figure something out.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 05-13-2009, 01:57 PM
  2. registry key for getting active network interface name
    By mind@work in forum C Programming
    Replies: 2
    Last Post: 11-28-2007, 04:49 AM
  3. limiting the bandwidth of computers on my network
    By Xterria in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 07-14-2004, 06:58 PM
  4. Getting HOSTnames/IPs of all computers in same Network neighbourhood??
    By hanhao in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-28-2004, 02:36 PM
  5. network 2 computers
    By actionbasti in forum Networking/Device Communication
    Replies: 2
    Last Post: 11-10-2003, 09:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21