I tried to find all machines which are connected my modem. I tried 192.168.x.0/24 command on gnome-terminal but it couldn't find any. My brother's laptop and my mobile phone are already connected the modem but this command couldn't find them.
Here is the output :
root@tugrul:/home/tugrul# nmap -sP 192.168.1.0/24
Starting Nmap 6.40 ( http://nmap.org ) at 2015-09-22 01:40 EEST
Nmap scan report for 192.168.1.1
Host is up (0.0050s latency).
MAC Address: xx:xx:xx:xx:xx:xx (Shenzhen Zowee Technology Co.)
Nmap scan report for 192.168.x.x
Host is up.
Nmap done: 256 IP addresses (2 hosts up) scanned in 3.40 seconds
I also tried nmap -sn 192.168.6.0/24 but there was no difference:
$ nmap -sn 192.168.6.0/24
Nmap scan report for 192.168.1.1
Host is up (0.0043s latency).
MAC Address: (Shenzhen Zowee Technology Co.)
Nmap scan report for 192.168.1.15
Host is up.
Nmap done: 256 IP addresses (2 hosts up) scanned in 3.06 seconds
How can I do that ?
14.04) unless your issue is only relevant to one version of Ubuntu. – terdon Sep 21 '15 at 22:54192.168.1.XX? – terdon Sep 21 '15 at 22:55sudobefore thenmapcommand as TCP SYN packets are sent to only ports 80 and 443 whennmap -sPis run as unprivileged user.. – heemayl Sep 21 '15 at 23:00root.. – heemayl Sep 21 '15 at 23:08nmap -sP 192.168.1.0/24shows all machines on my network. m.tuğrul could you show us the IPs of the machines you can't find? Don't worry, sharing internal IPs (e.g. 192.168.1.10) is completely safe. – terdon Sep 21 '15 at 23:11nmap -sn 192.168.6.0/24asrootof course..just want to check as-sPis deprecated in favor of-sn.. – heemayl Sep 21 '15 at 23:14ifconfigfor both systems, also, what OS your brother use? – Braiam Sep 22 '15 at 15:54