Click here to Skip to main content
15,796,456 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Find host name and IP address of computers connected to LAN using C# in Windows Forms application.

Please help me.
Updated 26-Oct-11 12:18pm
Nueman 26-Oct-11 21:07pm    
It is considered bad forum manners to post more than once, but you have posted the same question three times.

Either you ping each IP-Address in your network (can discoverd by the subnetmask) and hope for response, or you listen to broadcast messages.
But if the computer has an enabled firewall you won't find him whatever you try.

You could ask Windows with typing "net view" in cmd (look here how you can accomplish this with C#)[^].
Or maybe asking the router or dhcp-server could help...
Share this answer
First step unless YOU own the lan then get the owner's permission in writing.

If you do not have that in writing then do not do it.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900