Recording network traffic

I am writing this primarily as a reminder for myself but maybe it will be of use to you too if you ever need to see what data is being sent/received from your computer to a remote server; I keep writing the incantation down in my trusty notebook but for some reason I never seem to be able to find it again! I use tcpflow to look at what is being sent over the wire. For example, to look at the network traffic between your computer and ‘’, execute the following command as root:

tcpflow -c -i <interface> host

The -c flag means print to the console.

It’s a useful tool and it means that I don’t have to figure out how to use tcpdump! You can download tcpflow here.

1 thought on “Recording network traffic

  1. Miles Barr

    tcpflow is a very handy program, but a lot of the time I find I’m just interested in the HTTP headers and not the content, which the LiveHTTPHeaders extension for Firefox is great for doing. But it’s probably not enough for debugging Ajax calls to Google Maps!

Leave a Reply