views:

33

answers:

2

How can I effectively trace the raw data sent to my socket server listening on a win32 machine? I want the trace to be specific to the port my server is listening on, so I can monitor only that traffic.

I want to see how the data exchange works on the wire.

+4  A: 

You could use:

Microsoft Network Monitor
or
Ethereal
or
Wireshark

They all come with rich filtering capabilities so filtering on a single port / address or protocol should be quite easy.

Related:

Sam Saffron
+1  A: 

ETW can do it. ETW is built in to windows you don't need external tools. Here is blog post on that from technet.

Naveen