How to see which apps connect to the internet on your Mac
Most apps on your Mac connect to the internet, and many do it when you are not using them: update checks, sync, crash reports, analytics. Usually that is fine. But when your upload is slow, your data plan is running out, or you just installed a new tool and wonder what it does in the background, you want to see it.
macOS has a few built-in ways to look at this. Each shows part of the picture. Here is what each one can tell you, and where it stops.
Activity Monitor: how much each app sends
Open Activity Monitor (in Applications › Utilities) and choose the Network tab. It lists every process with the bytes and packets it has sent and received since it started.
Click Sent Bytes to sort by upload. This is the quickest way to find the app that is using your bandwidth.
What it doesn’t show is where the data goes. You see that a process sent 2 GB, not which servers it talked to.
nettop: live traffic per process
nettop is the command line version, and it updates live. For a summary per process:
nettop -P
Press q to quit. To see individual connections with their remote addresses, run it without -P and limit it to TCP:
nettop -m tcp
To follow one app, pass its process name or PID with -p, for example nettop -p Slack. For a one-time snapshot you can save or search, use logging mode, which prints CSV:
nettop -P -L 1 -J bytes_in,bytes_out
nettop shows IP addresses and ports, but not domain names. An address like 151.101.1.69 could belong to any number of sites behind the same CDN.
lsof: open connections right now
lsof lists every open network connection and the process that owns it:
lsof -nP -iTCP -sTCP:ESTABLISHED
Each line shows the process, its PID, and the connection as your-address:port->remote-address:port. Drop -n to have lsof look up names for the remote addresses:
lsof -P -iTCP -sTCP:ESTABLISHED
To look at one app only, add -a -c and the start of its process name. -a makes lsof match both conditions instead of either:
lsof -nP -iTCP -a -c Slack
Port numbers give a hint about what each connection is: 443 is HTTPS, 80 is plain HTTP, 53 is DNS and 5223 is Apple push notifications.
The host names lsof prints without -n come from reverse DNS, so you often get a cloud or CDN host name, such as server-13-32-1-2.fra56.r.cloudfront.net, rather than the domain the app actually connected to. lsof also only sees connections that are open at the moment you run it. A connection that lasted half a second between two runs never shows up.
Why this is hard with built-in tools
Put together, the built-in tools leave three gaps:
- No domains. They show IP addresses. The domain an app asked for is lost by the time you look, and many domains share the same addresses.
- No history. They show what is happening now. Short connections, or what an app did overnight, are gone.
- Helper processes. Many apps connect through helper processes with names like
Code HelperorGoogle Chrome Helper, which you have to map back to the app yourself.
Seeing every connection with its domain and keeping a history needs a network extension: a part of an app that macOS lets see connections as they are made. macOS asks you to approve it before it can run.
Caveats
- Seeing a connection doesn’t mean something is wrong. Update checks, license checks, sync and push notifications all connect regularly.
- With HTTPS, no tool on your Mac can see what is inside a connection without breaking its encryption. You can see which app connects, the domain, the address, the port and how much is sent, and that is usually what you need.
- System processes such as
apsd(push notifications),mDNSResponder(DNS) andnsurlsessiond(background downloads) connect on behalf of other apps. A lot of traffic under a system name may really come from an app you use. - These tools show your Mac’s side only. Traffic from other devices on your network doesn’t appear.
The faster way: CCToolify
The Network tool in CCToolify lists every outgoing connection your apps make, grouped by app, so you see the full picture in one place.
- For each app: every domain it connected to, the IP address, the port, the number of connections and, where available, how much was sent and received.
- Helper processes are grouped under their app, so
Code Helpershows up as Visual Studio Code. - Known telemetry, ad and crash-report domains are tagged, and connections to this Mac are marked as such.
- Look at Live, the Last hour or 24 hours. History is kept for 24 hours by default, and you can change it in Settings.
- Export CSV… saves the connections for the time range you picked.
Setup takes a minute: CCToolify installs its network extension, you allow it in System Settings, then you allow network filtering. CCToolify sees domains, ports and sizes, never page contents or passwords, and nothing leaves your Mac. The Network guide walks through setup step by step.
Once you see a connection you don’t want, you can block it. How to block an app from the internet on your Mac covers the built-in options and CCToolify’s Block.