We have been having some rare port exhaustion issues on our computers. We deployed a little netstat monitoring app that tracks the amount of TIME_WAIT statuses per application and notifies us if there are more than usual. One suggestion was that our netstat tool would not help us find the culprit application and check something else using Wireshark.
Since we are tracking port exhaustion, would it be possible to check which application is opening and closing their ports rapidly? And log that information somewhere in Wireshark?