Re:Show HN: Findpi find raspberry pis on your network faster...
by jamescampbell on Tuesday November 19, 2019 @10:12AM
(#21573594)
Hello all!
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.
Re:Show HN: Findpi find raspberry pis on your network faster...
by jamescampbell on Tuesday November 19, 2019 @10:31AM
(#21573878)
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?
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.
[0] http://johnbokma.com/blog/2019/10/17/wireless-headless-raspb...
Not a criticism, just curious.