xxxxxxxxxx
# I always use nmap. To scan for all devices in your network, use:
# STEP1 find your ip address e.g. 192.168.1.45
ifconfig
# STEP2 to know the connected pcs to your network
nmap -sP 192.168.1.0/24
# More here: https://www.cyberciti.biz/networking/nmap-command-examples-tutorials/
# It is a great tool to know about.
# You may want to install nmap using:
sudo apt-get install nmap # if you are using Debian / Ubuntu
sudo pacman -S nmap # if you are using Arch.