I'm working on a C# application, handling TCP sockets.
I have a server application (Hercules) on the remote machine, trying to keep a socket open.
I have my application on my machine, subscribing to that open socket.
I'm using Microsoft's TCPViewer to follow what's happening.
After some minutes, I see the socket turning from an established into a time wait state, and then the socket connection drops.
I've been looking on both computers' event viewer for event ID 4227 in all general locations (Windows Logs/Application, /Security, /Setup, /System and /Forwarded Events) but I found nothing.
What should I do in order to know which machine is actually closing the TCP socket and why?