How to see which apps are using the network on Linux
Updated
Short answer
Run sudo ss -tupn to list every open TCP and UDP connection with the process that owns it, or sudo nethogs to see live bandwidth per process. Both are command-line tools that show IP addresses; a graphical monitor such as PacketShield shows the same per-app traffic live, with the domain names each app contacts.
Option 1: ss (installed everywhere)
sudo ss -tupn # TCP and UDP, with process, numeric
sudo ss -tupn state establishedss is part of iproute2 and replaces netstat. Run it with sudo, otherwise it only shows the process for your own connections.
Option 2: lsof
sudo lsof -i -P -nlsof lists open internet sockets per process. -P and -n keep ports and addresses numeric, which is much faster.
Option 3: nethogs (live bandwidth per process)
sudo apt install nethogs # Debian/Ubuntu
sudo dnf install nethogs # Fedora
sudo pacman -S nethogs # Arch
sudo nethogsWith PacketShield: a graphical, live view with domains
PacketShield runs as a systemd service and shows every app that is online with live upload and download speed and the domains it is contacting. From the same screen you can block the app or a domain. Monitoring is unlimited in the free version.
It works on x86_64 distributions with systemd and kernel 5.8+, such as Ubuntu 24.04, Debian 12, Fedora 40 and Arch Linux.
Frequently asked questions
What replaced netstat on Linux?
ss, from the iproute2 package. sudo ss -tupn gives the same information as netstat -tupn.
Why does ss not show the process name?
Without sudo, ss can only show processes that belong to your user. Run it with sudo to see all of them.
Is there a GUI to see network usage per app on Linux?
Yes. PacketShield shows live per-app traffic and domains in a desktop app, and can block apps and domains too.