?
Solved

how to detect all IP of a LAN in C or C++

Posted on 2004-10-12
5
Medium Priority
?
1,008 Views
Last Modified: 2008-03-06
Hello experts, I have a question , I need to know how to detect all the PCs connected in the network...
In windows you can use the explorer to see all the groups and computers in the network, how can I obtain this information programatically ?
Is there a call to windows API or something to do this ?
0
Comment
Question by:daniel_becerra
  • 3
5 Comments
 
LVL 2

Expert Comment

by:dimitry_dimitry
ID: 12306884
system("ipconfig /all > result.txt")

and parse it
0
 

Author Comment

by:daniel_becerra
ID: 12310633
dimitry that's to get my current configuration , not get the pcs that belong to the network....
Kumvjuec I had found that sample before but could you explain what result would that throw ? Would it be the PCs in the network ? I tried to run that sample and I got no results...
0
 
LVL 3

Expert Comment

by:kumvjuec
ID: 12310663
0
 
LVL 3

Accepted Solution

by:
kumvjuec earned 330 total points
ID: 12310769
Or see this, this has worked on my computer :-)
Hope this will help.

http://www.codeproject.com/csharp/csenumnetworkresources.asp
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses
Course of the Month15 days, 22 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question