TCP ports not being released

We have been having issues with ports not being released. At first every two weeks or close to the server would freeze and we would have to do a hard restart. When we would look at the event logs it would indicate all of the TCP ports had been used and unreleased.
To fix the issue we increased the number of ports and the timeout period. This caused ignition connection slowly degrade until it completely locked up again.
Our current plan is restart the server every weekend.
Has anyone else had these issues and found a fix?