Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am tried of searching the code for getting the all IPAddress and Computer Name of the all computer connected in a LAN with C# programming. All the result i had found is the only the idea about retrieving Host IPAddress and Computer Name. Anyone can give me the idea about retrieving all IPAddress and Computer Name to the host which is connected in a LAN.
Posted
Updated 22-Aug-17 19:10pm
Comments
AlphaDeltaTheta 1-Jun-13 1:56am    
This has been posted more that I can ever imagine... Did you google or search CP before posting??
Reposting isn't good

See this question...
Find host and ip address of computers connected to LAN using c# in Windows form applicatio[^]

and this one also...
Find Host Name and IP Address of Computers Connected to LAN[^]

Well, the solutions are bit more like hacks, the do the work. If you want to really implement how "net /view" works, all by yourself, here's a bit info...

Windows Uses SSDP and UPnP to discover services. This wiki article[^] is a great starting point.

Good Luck!
 
Share this answer
 
v2

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