I'm trying to get list of IP address which are connected in LAN, Is it possible to get without using win32 API library.(Netapi32.dll). Any Idea to get an Without using Unmanaged win32 dynamic library.target to Windows 7 operating system
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
You can use the
NetworkInterface
object to get all the machines network interfaces.You can use System.Net.NetworkInformation.Ping to ping every IP in your subnet if you get a response there is a machine using that ip. If you don't get a response that ip is available, or the machine is ignoring pings.
Updated to add code to do this in parallel.
Updated to be .Net 2.0