useful networking commands
# Scan other hosts on the network
sudo arp-scan --interface=wlp2s0 --localnet
# or use this command to scan depending on ip and netmask
nmap -sn 192.168.1.0/24
# Scan for printers on the network by scanning port for a range of ip address (supplied with ip and subnet mask)
nmap -p 9100,515,631 192.168.1.1/24 -oX printers.xml
# Watch traffic in 1 interface
iftop -i <interface>
# Find out ip address without ifconfig
ip addr show
############################################################################
# 9100 = the RAW port for most printers, also known as the direct-IP port
# 515 = the LPR/LPD port, for most printers, as well as older print-servers
# 631 = the IPP port, for most modern printers, and CUPS-based print-server
############################################################################