Solved

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

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
gHappy challenge 67 128
sum67 challenge 35 99
can finally block executed even when there is a return statement in try block 4 82
tenRun challenge 28 100
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

809 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