Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now