Click here to Skip to main content
15,904,934 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to find all system ip address and their names in c# .net. and also tell me the command to dismiss any network in C#.
Posted

Just ping all technically possible addresses of the local network and analyse its results. Note that some machine may be configured not to answer a ping request - but the result is different from a non-existing IP address.
 
Share this answer
 
Comments
Member 8666669 6-Aug-14 2:17am    
but basically ping is used for main system not for all.
See here: Retrieving IP and MAC addresses for a LAN[^] - you can get the machine details including hostname from the IP address with the Dns.GetHostEntry[^] method.
 
Share this answer
 
Please check this article
How To Get IP Address Of A Machine[^]
 
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