WinXP: list everyone on the network

Started by
1 comment, last by Anon Mike 17 years, 6 months ago
I have, on multiple occasions, wanted to be able to see the IP address of everyone who is on the private (home) network. Is there a way to retrieve such a list using C++ and the Windows API? And also, what about in Java? Thanks in advance for the help.
.:<<-v0d[KA]->>:.
Advertisement
What does the network look like? Is the machine you're asking this question from the center of the network (ie, it's being used for something like Internet Connection Sharing)? Do the machines have individual firewalls? etc.

In general, no, you cant. If you are an arbitrary node on the network then other nodes can simply choose not to respond to your messages.
It depends on exactly what you mean by "everyone" as well as how your network is configured.

NetServerEnum will give you the same information as "net view" in a console window. i.e. Basically the list of computers. Figuring out what person (or persons) (if any) are logged on to those computers is more work, assuming it's even possible. The list returned is also not necessarily complete.
-Mike

This topic is closed to new replies.

Advertisement