~/Blog

Brandon Rozek

Photo of Brandon Rozek

PhD Student @ RPI studying Automated Reasoning in AI and Linux Enthusiast.

Find Devices on your Network with a Ping Scan

Published on

Updated on

Warning: This post has not been modified for over 2 years. For technical posts, make sure that it is still relevant.

Plugging in a device into a network with DHCP will often result in you not knowing what the ip is. If you don’t have easy access to the DHCP server, then one way to see what ip addresses are on the network is to do a ping scan.

Please make sure that this is either your home network or that you have permission before doing a scan.

First you’ll need to know the subnet that you are working off of.

ip addr show

You might get something like the following

2: wlan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 96:25:48:13:62:02 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.5/24 brd 192.168.0.255 scope global dynamic noprefixroute wlan0

Right after inet note the 192.168.0.5/24. The /24 subnet means that the last number changes. We can replace our last number then with zero and start the ping scan.

nmap -sn 192.168.0.0/24
Reply via Email Buy me a Coffee
Was this useful? Feel free to share: Hacker News Reddit Twitter

Published a response to this? :