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.
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.
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.
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.
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.
I just found the open source project, MenuMeters. It's got exactly what I'm looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With