This is not a EOS question, but a general one - and I’m happy to delete it if not appropriate for this forum.
I am trying to see all devices connected to my LAN
my own laptops IP is 192.168.1.80/24
all the instructions I found on the web say the command should be this: sudo nmap -sn 192.168.1.0/24
nmap discovers some devices but not others. ( I have access to the router so I can see the other devices via the router)
I’d love to know why?
It is strange that you allow someone else to connected to your home network.
You can man nmap to see all sort of different options that you can use. -sn is only ping scan - some devices do not respond to ping (firewall block it or low cost hardware do not support it).
Also are you sure all your devices are connected to the same IPv4 subnet you are probing? Is your router/switch isolating devices from each other? Try a simple ping from your terminal to see if the device on the oter side respond to it.
Oh, I was thinking more like a neighbour or that nice guy in the black van in front of the house, etc…
You can also check the network trafic with wireshark. When you use nmap -sn 192.168.1.0/24 (or more precisely your subnet) then you will see your computer will send out ARP broadcast asking on each ip address to whom it belongs. Next you should see an ARP response from valid targer informing your computer that it has that ip and what it its MAC address.
If you do not see those arp packets then there is something blocking the trafic - most likely the router or firewall.