Console application that can scan some port on some IP using syn packets. It's not work properly because of pcap.net issues, but the code may help to understand the specifics.