in reply to Printing IP packets

While I'm not sure how easy it is to get running on Windows, the standard way to do this is with PCAP, usually using Net::PCAP.