How to find the MAC addresses of people connected to my WIFI

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Brahim Salem

How to find the MAC addresses of people connected to my WIFI

Post by Brahim Salem »

I want to know if there is any command line that detects the MAC addresses of people connected to my WIFI network? :D
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: How to find the MAC addresses of people connected to my

Post by JeremyB »

Zorba wrote:I want to know if there is any command line that detects the MAC addresses of people connected to my WIFI network? :D
Check the manual for your wireless router, some will show the MAC addresses of all connected devices
altair4
Level 20
Level 20
Posts: 11427
Joined: Tue Feb 03, 2009 10:27 am

Re: How to find the MAC addresses of people connected to my

Post by altair4 »

There's probably 642 ways to do this - here's one:

Code: Select all

sudo nmap -sP -oG- 192.168.0.100/24
Change 192.168.0.100 to the ip address of the router or even your own ip address.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Brahim Salem

Re: How to find the MAC addresses of people connected to my

Post by Brahim Salem »

altair4 wrote:There's probably 642 ways to do this - here's one:

Code: Select all

sudo nmap -sP -oG- 192.168.0.100/24
Change 192.168.0.100 to the ip address of the router or even your own ip address.

It says:

Code: Select all

ubuntu@ubuntu-Inspiron-N5040:~$ sudo nmap -sP -oG- 192.168.0.100/24
sudo: nmap: command not found
:(
Brahim Salem

Re: How to find the MAC addresses of people connected to my

Post by Brahim Salem »

oops I installed nmap and now it is supposed to work fine:

Code: Select all

ubuntu@ubuntu-Inspiron-N5040:~$ sudo nmap -sP -oG- 192.168.1.1/24

Starting Nmap 6.40 ( http://nmap.org ) at 2014-09-03 12:10 CET
Nmap scan report for 192.168.1.1
Host is up (0.0015s latency).
MAC Address: 3C:DF:BD:0C:5D:D8 (Unknown)
Nmap scan report for 192.168.1.2
Host is up (0.12s latency).
MAC Address: B8:98:F7:19:64:16 (Unknown)
Nmap scan report for 192.168.1.6
Host is up (0.11s latency).
MAC Address: D0:51:62:03:CA:92 (Sony Mobile Communications AB)
Nmap scan report for 192.168.1.10
Host is up (0.12s latency).
MAC Address: 00:73:8D:CA:EA:10 (Unknown)
Nmap scan report for 192.168.1.20
Host is up (0.094s latency).
MAC Address: B4:52:7D:30:CD:C3 (Sony Mobile Communications AB)
Nmap scan report for 192.168.1.50
Host is up.
Nmap done: 256 IP addresses (6 hosts up) scanned in 3.60 seconds
ubuntu@ubuntu-Inspiron-N5040:~$ 
Brahim Salem

Re: How to find the MAC addresses of people connected to my

Post by Brahim Salem »

I have changed my password but when I run that command I still get 2 hosts although no one but me is using the network :shock: :shock:

Code: Select all

ubuntu@ubuntu-Inspiron-N5040:~$ sudo nmap -sP -oG- 192.168.1.1/24
[sudo] password for ubuntu: 

Starting Nmap 6.40 ( http://nmap.org ) at 2014-09-03 12:29 CET
Nmap scan report for 192.168.1.1
Host is up (0.0017s latency).
MAC Address: 3C:DF:BD:0C:5D:D8 (Unknown)
Nmap scan report for 192.168.1.50
Host is up.
Nmap done: 256 IP addresses (2 hosts up) scanned in 2.30 seconds
DanielR
Level 4
Level 4
Posts: 242
Joined: Mon Sep 23, 2013 1:22 pm

Re: How to find the MAC addresses of people connected to my

Post by DanielR »

Well, 192.168.1.1 seem to be your router which has a MAC address too and 192.168.1.50 seems to be your system. With only you connected to your network, your network has two hosts, your router and your system.
Brahim Salem

Re: How to find the MAC addresses of people connected to my

Post by Brahim Salem »

DanielR wrote:Well, 192.168.1.1 seem to be your router which has a MAC address too and 192.168.1.50 seems to be your system. With only you connected to your network, your network has two hosts, your router and your system.
oh thanks bro :D
zulu91

Re: How to find the MAC addresses of people connected to my

Post by zulu91 »

Zorba wrote:
altair4 wrote:There's probably 642 ways to do this - here's one:

Code: Select all

sudo nmap -sP -oG- 192.168.0.100/24
Change 192.168.0.100 to the ip address of the router or even your own ip address.

It says:

Code: Select all

ubuntu@ubuntu-Inspiron-N5040:~$ sudo nmap -sP -oG- 192.168.0.100/24
sudo: nmap: command not found
:(
my router has 192.168.1.1, but it is not working...
what is the number 24 supposed to be for?
Locked

Return to “Networking”