Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 6649  / 3 Years ago, fri, june 11, 2021, 11:06:07

I'm using Ubuntu 12.04, and I'd like to understand the source of background network usage.



While I'm not using the network (e.g. reading ebooks or using offline apps), Ubuntu keeps fetching data from the internet. From ifconfig, I see the download usage increasing. This happens all the time I'm connected to the 'net, not just when updates are downloading. Because I have a download quota plan I don't want to use the internet when I'm doing offline work.



Why could my internet use be increasing? What's responsible for these downloads?


More From » networking

 Answers
4

Try using nethogs to see which processes are using the network:




  1. Install nethogs using the Software Center or a package manager (sudo apt-get install nethogs).

  2. Open a terminal and run "ifconfig" to list your network interfaces. If you connect your computer with a wire the relevant interface will likely be something like eth8. If you connect wirelessly it'll be something like wlan5.

  3. Open a terminal and run "sudo nethogs interface", according to the relevant interface from before. Wait a bit. When a program accesses the internet, it will show up in the display.



To see what websites are being accessed, try running in a terminal:



netstat --protocol=inet --program


to list connections currently open. The output will show lines like



tcp        0      0 myhostname.local:59957      stackoverflow.com:http  ESTABLISHED 23331/firefox   

[#37889] Sunday, June 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
asketbridiculou

Total Points: 168
Total Questions: 116
Total Answers: 115

Location: Antigua and Barbuda
Member since Sat, Jan 28, 2023
1 Year ago
asketbridiculou questions
Thu, Dec 22, 22, 08:36, 1 Year ago
Thu, Jan 27, 22, 14:28, 2 Years ago
Tue, Nov 29, 22, 21:50, 1 Year ago
Sun, Jun 20, 21, 04:42, 3 Years ago
Sun, Aug 15, 21, 08:42, 3 Years ago
;