The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 140,470β€…    Votes:  11β€…
Tags: networking   wifi   raspbian  
Link: πŸ” See Original Answer on Unix & Linux ⧉ πŸ”—

URL: https://unix.stackexchange.com/q/530019
Title: Get names of devices on the network
ID: /2019/07/13/Get-names-of-devices-on-the-network
Created: July 13, 2019
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Three answers here refer to nmap but I found prefixing sudo (which none of the answers do) makes all the difference in the world:

$ nmap -sP 192.168.1.0/24

Starting Nmap 7.01 ( https://nmap.org ) at 2019-07-13 14:55 MDT
Nmap scan report for 192.168.1.65
Host is up (0.00037s latency).
Nmap scan report for 192.168.1.66
Host is up (0.00035s latency).
Nmap scan report for 192.168.1.67
Host is up (0.00028s latency).
Nmap scan report for 192.168.1.68
Host is up (0.00025s latency).
Nmap scan report for 192.168.1.70
Host is up (0.017s latency).
Nmap scan report for 192.168.1.254
Host is up (0.00070s latency).
Nmap done: 256 IP addresses (6 hosts up) scanned in 6.86 seconds

$ sudo nmap -sP 192.168.1.0/24

Starting Nmap 7.01 ( https://nmap.org ) at 2019-07-13 14:56 MDT
Nmap scan report for 192.168.1.65
Host is up (0.00050s latency).
MAC Address: 99:99:99:99:99:A6 (Unknown)
Nmap scan report for 192.168.1.66
Host is up (0.00016s latency).
MAC Address: 99:99:99:99:99:D9 (Sony)
Nmap scan report for 192.168.1.70
Host is up (-0.087s latency).
MAC Address: 99:99:99:99:99:36 (Unknown)
Nmap scan report for 192.168.1.254
Host is up (0.0020s latency).
MAC Address: 99:99:99:99:99:00 (Actiontec Electronics)
Nmap scan report for 192.168.1.67
Host is up.
Nmap scan report for 192.168.1.68
Host is up.
Nmap done: 256 IP addresses (6 hosts up) scanned in 2.41 seconds

I stumbled upon this Q&A because I’m researching a project on how to display Human readable names rather than computer coded IP addresses and MAC addresses to devices.

In particular I want β€œToshiba 43” 4K TV” to displayed rather than β€œ(unknown)” for MAC 99:99:99:99:99:36 (not real address) above.

Later I want expand the project past the Local Area Network to the Internet where β€œStack Exchange” will display instead of 999.999.9.99 or β€œAsk Ubuntu” will display instead of 999.999.9.99 when I’m looking at external IP addresses my machine is interacting with.

⇧ How do I connect 2 PCs to one monitor? CPU overheating in Ubuntu 18.04  β‡©