Sign in to follow this  
v0dKA

WinXP: list everyone on the network

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this