Skip to content

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

License

Notifications You must be signed in to change notification settings

RedSpiderMkV/LANMachines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LANMachines

GitHub license

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