A simple and quick guide on how to detect what devices are connected to your linux network
How to detect what devices are connected to your network
Linux ubuntu >= 22.04 LTS
- Firstly install nmap a common ubuntu tool:
sudo apt-get install nmap
- Find your pc's ip::
ifconfig
Or if you prefer:
ip a
- You should get some output relating to your network connection, if you're using wireless your IP will be labeled with wlan0 and eth0 for ethernet.
- Your local ip should be something like: 192.168.1.xxx/24.
- Scan network:
- Run the following command replacing xxx with your local ip:
sudo nmap -sn 192.168.1.xxx/24
- You will now get some output with all the devices connected to your network, and their corresponding local IP's