You can download a packet sniffer which grabs packets from local interface and analyses headers. It also writes headers into the log file.