Skip to content

Ferdowsy/LANMachines

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LANMachines

Library to find all machines on your local network. Machines have to be pingable.

Asynchronous pinging is carried out to get a list of machines quickly. The ARP command is then used and any machines found in this way are added to the list if they don't exist there already.

Performance isn't too bad (subjective) but would be happy to hear of any suggestions for improvement.

Usage

LanDiscoveryManager lanDiscovery = new LanDiscoveryManager();
List<IPAddress> lanMachines = lanDiscovery.GetNetworkMachines();

Example Output

Example output running in a console

run image

For a usage example, please see this file for blocking mode operation

To Do

Improve examples

Unit tests

Misc

Based on this nice and useful stackoverflow post

About

LAN Discovery - Discover all reachable machines on a LAN quickly using an asynchronous ping and an ARP command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%