I've been trying for some time to write a sniffer for a specified port, i've found some on the internet but they all sniff all the packets so is it possible to configure the socket to receive only packets from a specified port or do I have to filter through all of the packets being sent to my computer?

1 answers
post xp sp2 you cant send data over a raw socket, nor can you bind to an address using one.
I'd suggest taking a look at winpcap
answered 2 years ago by:
2309
0
You actually can , you just need to run as admin, anyway I've almost written the whole thing but I just filtered packets as they came. I have a feeling this isn't the best approach but if noone else has an idea i'll stay with it.