I was sick of waiting for the arp / nmap commands to work single-threaded to find the raspberry pi's on my network.
Also, arp only works for devices you have seen previously, so you could easily miss things.
I posted benchmarks on the readme. Interested in feedback, suggestions, and please pull requests if you want to help improve it. Installs via pip and python 3x only! PS - since I am lazy, it also auto-suggests the network range you are connected to to be the network it searches, so you don't have to type it in.
I thought I posted the command in the readme, nmap -sP. Yeah I remember reading about nmap adding parallelization. According to the link you shared: "By default, Nmap calculates an ever-changing ideal parallelism based on network performance". So my benchmarks are based on comparing against that. I don't know why my implementation is faster, but the three tests I performed show that findpi is faster. I guess because I am forcing more threads than nmap's ever-changing ideal is allocating?
11 comments
[ 2.4 ms ] story [ 35.3 ms ] threadI was sick of waiting for the arp / nmap commands to work single-threaded to find the raspberry pi's on my network.
Also, arp only works for devices you have seen previously, so you could easily miss things.
I posted benchmarks on the readme. Interested in feedback, suggestions, and please pull requests if you want to help improve it. Installs via pip and python 3x only! PS - since I am lazy, it also auto-suggests the network range you are connected to to be the network it searches, so you don't have to type it in.
Not a criticism, just curious.
[0] http://johnbokma.com/blog/2019/10/17/wireless-headless-raspb...