get IP own address
$ ifconfig
wlxc4e90a049454: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.103 netmask 255.255.255.0 broadcast 192.168.8.255
^^^^^^^^^^^^^
describe network
$ ipcalc 192.168.8.103
Address: 192.168.8.103 11000000.10101000.00001000. 01100111
Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000
Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111
=>
Network: 192.168.8.0/24 11000000.10101000.00001000. 00000000
HostMin: 192.168.8.1 11000000.10101000.00001000. 00000001
HostMax: 192.168.8.254 11000000.10101000.00001000. 11111110
Broadcast: 192.168.8.255 11000000.10101000.00001000. 11111111
Hosts/Net: 254 Class C, Private Internet
scan all ports on all addresses in network range
$ nmap 192.168.8.0/24
compare the results to an arp scan of the local network
$ sudo arp-scan -l