Você pode instalar um aplicativo chamado nmap
.
sudo apt-get install nmap
Em seguida, você pode verificar toda a sua rede para todos os endereços IP conectados, digitando o seguinte:
nmap -sP 192.168.1.1/24
O comando acima varrerá todos os endereços IP a partir de 192.168.1.1
a 192.168.1.254
e mostrará todos os IPs que responderam.
Você pode verificar outros intervalos de endereços IP, como 192.168.0.1 - 192.168.1.254
, digitando o seguinte:
nmap -sP 192.168.0.1/23
Uma varredura típica pode retornar algo como o seguinte:
terrance@terrance-ubuntu:~$ nmap -sP 10.0.0.1/24
Starting Nmap 6.40 ( http://nmap.org ) at 2015-12-24 00:20 MST
Nmap scan report for Linksys03773 (10.0.0.1)
Host is up (0.00078s latency).
Nmap scan report for terrance-ubuntu (10.0.0.100)
Host is up (0.00020s latency).
Nmap scan report for android (10.0.0.148)
Host is up (0.099s latency).
Nmap scan report for PC (10.0.0.149)
Host is up (0.0014s latency).
Nmap scan report for 10.0.0.150
Host is up (0.0016s latency).
Nmap scan report for 10.0.0.165
Host is up (0.011s latency).
Nmap scan report for 10.0.0.169
Host is up (0.010s latency).
Nmap scan report for 10.0.0.179
Host is up (0.014s latency).
Nmap scan report for android (10.0.0.181)
Host is up (0.093s latency).
Nmap scan report for android (10.0.0.188)
Host is up (0.043s latency).
Nmap scan report for android (10.0.0.196)
Host is up (0.014s latency).
Nmap scan report for 10.0.0.253
Host is up (0.0013s latency).
Nmap done: 256 IP addresses (12 hosts up) scanned in 4.46 seconds
Espero que isso ajude!