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?
tcp && (ip.addr==10.2.13.144 && ip.addr==10.1.6.160). How will I be able to recognise the "FIN"? Will it appear in the Protocol column or in another column? Or will my capture simply stop continuing? (Keep in mind that I have a remote desktop connection to that machine)tcp && (ip.addr==10.2.13.244 && ip.addr==10.1.6.160) && tcp.flags.finbut although I've added thetcp.flags.finflags, I keep seeing TCP packets where that flag is not set. Just for confirmation: the TCPFINflag, that's the one I should be looking for, right?tcp.flags.fin==1