You are reading a single comment by @NotThamesWater and its replies.
Click here to read the full conversation.
-
For finding an open ssh port on your network
for i in {1,10,20,30,40}; do sudo nmap 192.168.$i.* -p 22 --open; done
(Change the 1, 10 etc... to reflect what subnets you have)
For ports in use on localhost:
lsof -Pn +M -i4
also this, which I use to track down ports that are open & blocking something else :
netstat -anlp | grep -w "Proto\|LISTEN"
Tried a few different machines and some are definitely on the same subnet.
Sometimes run into issues with things that don't like the multiple APs and SSIDs on the network but haven't had that issue with a pi before.