Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I tell the ubuntu to report what app connected to the internet?

I am learning of CLI programs that report connections but an App connected to the internet and the description of it disappeared from the Terminal window before I had a chance to examine it.

I looked at the firewall log but it say nothing about what Apps are connecting to the internet. So how do I learn what App connected to the internet in the last 10 minutes or so?

Why is there no log report of what Apps are connecting to internet? How do I get this?

share|improve this question

There is no log like that. If there were it would be several gigs in size. Your best bet is to run something like iftop or nethogs neither of which is installed by default.

If your really, really paranoid, then you could cat /proc/net/tcp but this doesn't log.

There's also netstat -tapn but again that's only "what is connected right now".

Then there's also this article that will tell you how to log outgoing connections via iptables.

Again, this is likely not that smart of an idea, the log will be huge.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.