2

I'm running a chat application on my machine called foo - how do I view all connection attempts (failed or successful) for foo?

I have attempted this with netstat, but I am unsure how to associate these connections with a specific application.

  • What operating system? Please add that information to your question, or at least add a tag. If Linux, then there are iptables rules you can use to count traffic originated by a particular user... but I can't think of a way to count by originating application. – Celada Apr 23 '15 at 1:48
  • @Celada or group, so you can adapt it by using a special group or user just for that application. – muru Apr 23 '15 at 2:06
2

you can use tcptrack

more info can be found at http://manpages.ubuntu.com/manpages/dapper/man1/tcptrack.1.html

you'll find a detailed description of all connections and eventually select specific app connection

| improve this answer | |
  • unfortunately, i still don't see way to associate this information with an application - just get back client (ip and port) server (ip and port) state (closed or established), idle time and speed – lfender6445 Apr 24 '15 at 19:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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