How to Find What Devices are Connected to Network in Linux (2024)

How to Find What Devices are Connected to Network in Linux (1)

Wireless networks have always been a desirable target for wannabe hackers. Wireless networks are also more vulnerable to hacking than the wired ones.

Forget hacking, do you ever wonder that someone might be leeching off your hard paid wifi network? Maybe a neighbor who once connected to your network and now uses it as his/her own?

It would be nice to check what devices are on your network. This way you can also see if some unwanted devices are on your network.

So you might think, “how do I find what devices are connected to my network”?

I’ll show you how to do that in this quick tutorial. Not only it’s a good idea from the security point of view, but it is also a good little exercise if you have an interest in networking.

You will learn both command line and GUI ways for finding out what devices are connected to your local network in Linux. The process is straightforward and easy to use even for beginners.

If you don’t remember the router password or you don’t want to go that way, here’s what else you could do.

Method 1: Use Linux command line to find devices on the network

The nmap command can be used to scan your network and see who is on your network.

Step 1: Install nmap

nmap is one of the most popular network scanning tool in Linux. Use the following command to install nmap in Ubuntu based Linux distributions:

sudo apt-get install nmap

You can easily install it in other Linux distributions as well. It should be in the official software repository.

Step 2: Get IP range of the network

Now we need to know the IP address range of the network. Use the ifconfig command to find the IP address in Linux. Look for wlan0 if you are using wifi or eth0 if you are using Ethernet.

user@user-notebook:~$ ifconfigwlan0 Link encap:Ethernet HWaddr 70:f1:a1:c2:f2:e9inet addr:192.168.1.91 Bcast:192.168.1.255 Mask:255.255.255.0inet6 addr: fe80::73f1:a1ef:fec2:f2e8/64 Scope:LinkUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1RX packets:2135051 errors:0 dropped:0 overruns:0 frame:0TX packets:2013773 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:1434994913 (1.4 GB) TX bytes:636207445 (636.2 MB)

The important things are highlighted in bold. As you see my IP is 192.168.1.91 and the subnet mask is 255.255.255.0 which means that the ip address range on my network varies from 192.168.1.0 to 192.168.1.255.

You may also use ip a command to know your IP address in Ubuntu and other Linux distributions.

At the same time, I’ll recommend you read about basic Linux networking commands for more information.

Step 3: Scan to find devices connected to your network

It is advisable to use root privileges while scanning the network for more accurate information. Use the nmap command in the following way:

user@user-notebook:~$ sudo nmap -sn 192.168.1.0/24Starting Nmap 5.21 ( http://nmap.org ) at 2012-09-01 21:59 CESTNmap scan report for neufbox (192.168.1.1)Host is up (0.012s latency).MAC Address: E0:A1:D5:72:5A:5C (Unknown)Nmap scan report for takshak-bambi (192.168.1.91)Host is up.Nmap scan report for android-95b23f67te05e1c8 (192.168.1.93)Host is up (0.36s latency).

As you can see that there are three devices connected to my network. The router itself, my laptop, and my Android smartphone.

💡

If you are wondering about why I used 24 in the above command, you should know a little about CIDR notation. It basically means that the scanning will be from 192.168.1.0 to 192.168.1.255.

When I first wrote this article, there was no GUI tool for this task. Then I came across a new network monitoring tool being developed for elementary OS. I suggested including a periodic device scan feature in this tool and the developer readily agreed.

So, now we have a GUI tool that does this task. It’s called Nutty (last updated in 2019). Just install this app and run it. It will periodically scan for new devices on the network and will notify you if there is a new device.

How to Find What Devices are Connected to Network in Linux (2)

This application is only available for elementary OS, Ubuntu and hopefully, other Ubuntu based Linux distributions. You can find installation instructions on this detailed article on Nutty.

Oh, you can also log in to your router and see the devices connected to your devices. I let you figure the best way to find devices connected to your network.

About the author

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

How to Find What Devices are Connected to Network in Linux (2024)

FAQs

How to see all devices connected on your network in Linux? ›

Run the arp-scan. The command scans the local network and provides a list of connected devices along with their IP and MAC addresses in the wireless access point.

How to see all devices connected to the network? ›

On a PC or Mac, open Command Prompt or Terminal, type arp -a, and press Enter or Return to see IP addresses of connected devices. Try a third-party app like Wireless Network Watcher on Windows or Fing on mobile.

How do I see attached devices in Linux? ›

Basic Linux Commands to Check Hardware and System Information
  1. Printing Machine Hardware Name (uname –m uname –a) ...
  2. lscpu. ...
  3. hwinfo- Hardware Information. ...
  4. lspci- List PCI. ...
  5. lsscsi-List sci devices. ...
  6. lsusb- List usb buses and device details. ...
  7. lsblk- List block devices. ...
  8. df-disk space of file systems.
Dec 26, 2020

How do I see other computers on my network in Linux? ›

Scanning With nmap

nmap is a tool for scanning ports and exploring networks and their security. There are two methods that nmap uses to scan devices: list scan (-sL) and ping scan (-sn). We've used grep to filter only those starting with (1, which we've escaped with the backslash.

How do I list all IP addresses on a network in Linux? ›

On Linux, type the command “ifconfig” and press Return. On Windows, type the command “ipconfig” and press Return. Get more information by typing the command “arp -a.” You should now see a basic list of the IP addresses for devices connected to your network.

How to scan for devices on network Linux? ›

The nmap command can be used to scan your network and see who is on your network.
  1. Step 1: Install nmap. nmap is one of the most popular network scanning tool in Linux. ...
  2. Step 2: Get IP range of the network. Now we need to know the IP address range of the network. ...
  3. Step 3: Scan to find devices connected to your network.

How to locate a device using IP address? ›

There are several websites that can track the location of an IP address IP-Tracker.org, WhatIsMyIP.com, IPLocation.net etc. Please keep in mind that the accuracy of the information provided by these websites may vary, and the IP address location may not always be the actual physical location of the device.

What is the command to list connected USB devices in Linux? ›

lsusb is a command-line utility that displays information about USB buses and connected devices on a Linux system.

Where are devices stored in Linux? ›

All Linux device files are located in the /dev directory, which is an integral part of the root (/) filesystem because these device files must be available to the operating system during the boot process.

Who is connected to my network? ›

You should be brought to your router's menu. You'll need to log in with your router's custom username and password or the default information if you never set one. Once you're in, check for a list that says DHCP Client or Connected Devices. From there, you'll be met with a list of devices currently using your network.

How to check network devices in Ubuntu? ›

To quickly identify all available Ethernet interfaces, you can use the ip command as shown below. Another application that can help identify all network interfaces available to your system is the lshw command. This command provides greater details around the hardware capabilities of specific adapters.

How do I see all devices on my network in Windows 10? ›

Finding PCs, devices and content on your network
  1. Swipe in from the right edge of the screen, tap Settings, then tap Change PC settings. ...
  2. Tap or click Network, tap or click Connections, then tap or click your network connection.
  3. Turn on Find devices and content.

How can I see all devices connected to my Wi-Fi using phone? ›

How to Check Which Devices Are Connected to Your WiFi
  1. Open the Settings app on your Android phone.
  2. Tap on Network & Internet.
  3. Tap on Wi-Fi.
  4. Tap on the name of your WiFi network.
  5. Tap on Advanced.
  6. Tap on Connected devices.
Jul 13, 2023

How do I see previously connected devices on my router? ›

Log into your router via your web browser. Look for something called Outgoing Log Table, System Log, Connections Log, or similar, and click it. Scroll through the list of IP addresses. Some routers will list the client name next to them.

Top Articles
Latest Posts
Article information

Author: Jeremiah Abshire

Last Updated:

Views: 5581

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Jeremiah Abshire

Birthday: 1993-09-14

Address: Apt. 425 92748 Jannie Centers, Port Nikitaville, VT 82110

Phone: +8096210939894

Job: Lead Healthcare Manager

Hobby: Watching movies, Watching movies, Knapping, LARPing, Coffee roasting, Lacemaking, Gaming

Introduction: My name is Jeremiah Abshire, I am a outstanding, kind, clever, hilarious, curious, hilarious, outstanding person who loves writing and wants to share my knowledge and understanding with you.