Monitoring LAN

This is a discussion on Monitoring LAN within the C Programming forums, part of the General Programming Boards category; hello , i want 2 monitor a ethernet LAN i.e just get the name of the host on the network ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    9

    Monitoring LAN

    hello ,


    i want 2 monitor a ethernet LAN i.e just get the name of the host on the network and display that it is alive .

    i think NETBIOS should be used . But i knew what it does but i dont know what function should i use to request the NETBIOS for services.

    i have TURBO C++ & Borland on WIN-ME

    kindly specify the syscalls & functions ,header files...etc

    Thank u all...

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Hrmm, I do not quite understand. Do you have a list of names or do you need to somehow aquire them by listening to the network? If you need to acquire them, then you know they are up simply beacuse you just 'listened' to their traffic. Go look up 'windump'.

    NetBIOS is a protocol mainly used in windows machines. Unless under special circumstances, NetBIOS calls would most likely not be what you want in this.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    9
    thanx
    ping works fine but i want to have my own programm...
    i need to learn how to code it.Thats it


    help me
    i actually want to write a progame in C ,which lists all the PCS on the LAN wether dead or alive?

    can u guide me how to code it in C

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    4. (Easy) write a loop which tests all the IPs in a range (eg. 192.168.0.1 to 192.168.0.254).
    That won't list the 'dead' ones too. But then again, are they really there if they are dead. haha.

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>That won't list the 'dead' ones too.
    Eh? It will list all 254 IP addresses, and if written properly, it will say if they are responding to ping's or not.

    >>i want 2 monitor a ethernet LAN
    >>write a loop which tests all the IPs in a range
    Unfortunately, this won't cater for subnet masks, therefore you may be trying to ping hosts that aren't actually on your network.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. connecting to a computer inside a LAN
    By hardi in forum Networking/Device Communication
    Replies: 6
    Last Post: 10-25-2006, 04:43 PM
  2. LAN IP masks?
    By whackaxe in forum Networking/Device Communication
    Replies: 7
    Last Post: 07-12-2004, 04:30 AM
  3. LAN Party 2003
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 25
    Last Post: 07-01-2003, 08:03 PM
  4. LAN parties
    By Liger86 in forum A Brief History of Cprogramming.com
    Replies: 33
    Last Post: 06-04-2003, 01:06 PM
  5. lan monitoring
    By scott27349 in forum C++ Programming
    Replies: 3
    Last Post: 05-09-2002, 10:11 PM

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