Automatically close TCP connection between server and client after certain time limit

Discussion in 'Windows Server' started by poirot333, Jan 4, 2013.

  1. poirot333

    poirot333 MDL Novice

    Jan 4, 2013
    1
    0
    0
    At our factory, we have a server which has a program on it. This program has a limited number of people allowed to use it at the same time. When a client logs onto the program, it uses up one of the available licenses. The problem is that when people are finished using it, they often forget to logout, and this leaves the TCP connection in established state for an indefinite amount of time. Obviously, this uses up licenses for nothing, and they eventually run out.

    My question is:
    Is there a way to set a time limit on how long the TCP connection is allowed to stay active (in the established state)? After this timelimit has been achieved, I want to close the connection automatically, so not manually using TCPView or CurrPorts. I've been looking for a way for a long time and I can't seem to find any...

    Thanks in advance