How to Find IP Addresses of Devices on Your Local Network

Network Utility Icon

There are times when it can be handy to know which other devices are on your local network. For example, suppose that you need to know whether a certain device (such as a computer, tablet or router) is up and running and responding. If you have a PC or Mac, you can just go to the relevant network setting to see what the IP address is, but some devices such as printers and mobile phones don’t always provide an easy way to do that.

Fortunately, there is a very useful command built into Terminal in Mac OS X called ping that can be used to do just that. Ping can be used either in the command line form, or from within Network Utility, and there are also lots of other free apps which can help you to build up a local network map by way of using the ping command.

This article shows you how to determine the IP addresses of all devices connected to your local network.

How to Use Ping

The first thing to do is open Terminal from within the Applications -> Utilities folder, or just type Terminal into Spotlight (CMD + SPACEBAR) and click on the icon when it’s found.

Once Terminal is open, you can try out the ping command by typing an example at the command prompt. Just type ping www.google.com (and hit Enter) or any other website address and you should see some results appear that indicate the website (or individual server) is responding.

Something akin to the following should be displayed:

Ping in Terminal
Use the Ping command in Terminal to see all the devices present on your local network

The items of particular interest are the IP address (which is the dotted decimal address in four parts that identifies a machine on the network) and the response time in milliseconds, which is how long the ping took to complete. In general, the further away the machine is (or the slower the network it’s connected to), the higher the ping times will be.

The ping command just repeats forever until you press CTRL + C to stop it. Some versions of UNIX (on which OS X is based) include a special version of ping which lets you send a broadcast message that every device receiving it will respond to. Unfortunately, OS X does not include this version, but there is another way to get most devices to respond.

You need to know 2 things:

  1. Your machine’s IP address
  2. Your subnet mask

Both of these items can be found in the Network section in System Preferences. Open System Preferences and click the Network icon, then select the TCP/IP tab at the top as shown below:

Network Settings
Your IP and MAC addresses are shown in Network settings

In my case, the IP address is and the subnet mask is

Now, you need to look for any 0 values in the subnet mask, turn them into 255, and put them into the same position in the IP address field, and then ping that network address. For example, my subnet address has the zero in the fourth position – so my “special” ping address will be

Now just enter this address into the ping command in Terminal, for example:


Every device on your local network should respond to this ping. Note however that some devices and computers may be configured not to respond to ping requests.

After running this command, I see the following output:

Broadcast Ping
Ping the special address to see what machines respond

In this case only one machine on my home network has actually responded (on

There is also an alternative command called arp (Address Resolution Protocol) which can be used to find out about every device on the local network. Type arp -a into Terminal and you’ll see a response similar to the following that lists all known devices.

ARP Protocol
The ARP command can be used to discover local network devices

The machine at is actually a PC (!) on my local network. There’s a useful bit of information in the results of the arp command, which is called the MAC address – basically the physical hardware address of the network adapter on each machine, which can also help you identify each computer. In this case, the MAC address is e8:3:9a:37:66:22. I verified this in the Command Prompt in Windows by typing ipconfig /all which yields the following information:

PC IP Address
The other machine on my local network was detected by ARP

IP Scanner IconApps To Find Machines On Your Network

There are also a few apps on the Mac App Store that can help you find IP addresses and details of all machines on your network quite easily. One of the best free ones is called IP Scanner which is free (on home networks for up to 6 devices) and presents all the information in a convenient list – such as the device name, IP address and MAC (hardware address).

IP Scanner Screenshot
IP Scanner quite handily shows you the details of all local machines

Before you go

After spending over 20 years working with Macs, both old and new, theres a tool I think would be useful to every Mac owner who is experiencing performance issues.

CleanMyMac is highest rated all-round cleaning app for the Mac, it can quickly diagnose and solve a whole plethora of common (but sometimes tedious to fix) issues at the click of a button. It also just happens to resolve many of the issues covered in the speed up section of this site, so Download CleanMyMac to get your Mac back up to speed today.


About the author

Roland Banks

I've been passionate about Apple ever since I bought my first iPod followed by a white polycarbonate MacBook in 2007. I currently own a MacBook Pro Retina, an iPad Mini Retina, and an iPhone 6.


Click here to post a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.