This is a program to capture raw IP socket packets and decode their src/dest IP and port (where applicable). It is based on code I orginally downloaded from It will read data from a raw socket and write it to file for later analysis. It also can display packet information in realtime. This code cannot be used as a packet filter, it only looks at the packets (readonly).