Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Monitor Network Traffic Mac

I'm wondering how to go about monitoring network traffic on my Mac. Like the way activity monitor does it, showing the bytes / packets in and out.

I know it's a bit vague, but I'm unsure of the best place to start.

EDIT: I'm wanting to do this in code, not use an existing piece of software.

like image 202
Tom Irving Avatar asked Apr 18 '10 13:04

Tom Irving


People also ask

How do I track network traffic on a Mac?

View network activity in the Activity Monitor window In the Activity Monitor app on your Mac, click Network (or use the Touch Bar) to see the following in the bottom of the window: Packets in, Packets out: The total number of packets received and sent.

How do I monitor activity on Mac?

To find Activity Monitor on a Mac, go to your Applications folder > Utilities folder, and then double-click Activity Monitor. There you'll see a simple app with five tabs, and a list of entries that changes every few seconds.

How can I monitor network activity?

Access your router by entering your router's IP address into a web browser. Once you sign in, look for a Status section on the router (you might even have a Bandwidth or Network Monitor section depending on the type of router). From there, you should be able to see the IP addresses of devices connected to your network.

How can I tell if my Mac is being monitored?

Mac users: Follow these steps To open the Activity Monitor, hit Command + Spacebar to open Spotlight Search. Then, type Activity Monitor and press Enter. Check over the list for anything you don't recognize. To close out a program or process, double click, then hit Quit.


1 Answers

I just found the open source project, MenuMeters. It's got exactly what I'm looking for.

like image 102
Tom Irving Avatar answered Oct 01 '22 07:10

Tom Irving