Solved

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

Posted on 2004-10-12
5
989 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 3

Expert Comment

by:kumvjuec
ID: 12301127
0
 
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 110 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hibernate methods 2 77
Line meaning 9 88
drawing animated level bar based on numbers 3 104
Delphi: barcode reading on android platform 1 51
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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 learn how to clear a vector as well as how to detect empty vectors in C++.

829 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