Let's talk tech and solve problems ..

Active 7 months ago. Viewed k times. Jonas Jonas 1, 7 7 gold badges 24 24 silver badges 31 31 bronze badges. However, the output is quite hard to read, but lsof was a bit better, thanks. You need to use sudo lsof Without the sudo, lsof can only see processes you own, and hence won't show any ports opened by system processes. With GNU netstat , you can optionally list the pid of the process that opened each port. Is there any way to get that behavior with BSD netstat as well?

Nmap for Mac OS X Explores Networks, Scans Ports, and More

I just did, turns out the -v flag turns that on. The pid will be in the second-to-last column. What does this command do? Network sockets count as files, so each open network socket either listening or actively in use will be listed in lsof. One my machine at least, this answer takes 0. The difference is the -i4 switch, to only look at IPv4 addresses.

Top 5 Best Port Scanners

Please do not post gifs of Terminal bot paste the text here formatted as code. The image isn't a gif, it's just a screen showing the output. If you click through you'll see it's a PNG. Hosted on imgur.. Anyway, if you're looking for a different screenshot, I can re-grab. OK in my comment replace GIF by screenshot it does not matter which format. Since removing the long command from the sample output, it would actually now work better as a screenshot, since there's nothing that needs to be copied from it, and since it can also crop better than before.

Featured on Meta. Congratulations to our 29 oldest beta sites - They're now no longer beta! Unicorn Meta Zoo 7: Interview with Nicolas. Adding hints for including code in questions about scripting.

How to Use the Port Scanner in Mac OS X Network Utility

In my tests, the program was able to find 16 devices on the network when checking the Always analyze device option compared to just 11 items when not checked. Any item with a plus sign to the left of the IP address means that it has shared folders. The Host Name column should give you an easy to understand name for the device. On the Mac, you have a couple of options. The free version will only list the first four hostnames fully and the rest will only show the first three characters.


  1. mac encriptar disco duro externo.
  2. open folder in new window shortcut mac.
  3. lanzador de aplicaciones para mac.
  4. easy dvd creator mac app store;
  5. mac os x vpn authentication failed;
  6. clean up my mac activation number?

A little annoying, but probably not a huge deal on most home networks. By default, the program also scans open ports, which LanScan does not do. The only issue with this program is that you have to have Java installed in order to run the program. Java is a big security risk and is disabled on most Macs by default, so you would have to enable it manually.

I have two apps that I use, both of which are free, and one that can you download on Apple devices or Android devices. Both apps are excellent and pretty much give you the same info, but each has its pluses and minuses. It only caught about 12 devices on my network out of the 16 that the Windows program had found.


  • Subscribe to RSS?
  • best replacement for limewire mac.
  • stop music playing on mac.
  • How to Use the Port Scanner in Mac OS X Network Utility.
  • Using this app, I got 15 devices, which was pretty close to the total number of devices on the network. You can tap on a device to get more information and perform queries on the device.

    5 Network Scanner Utilities and Tools for Mac OS X

    Tap the Query with Tools option shown below once you tap on a particular device. Tap on Ports, choose Common or All and then tap Start at the top. The app also has other tools that you can use to scan specific devices on the network to get more information. Hopefully, these tools will allow you to fully see what devices are on your network and what services and ports are open. If you have any questions, feel free to post a comment.

    Your Answer

    Founder of Online Tech Tips and managing editor. He began blogging in and quit his job in to blog full-time. He has over 15 years of industry experience in IT and holds several technical certifications.