1834508 Members
2762 Online
110068 Solutions
New Discussion

Clearing TCP Port

 
Leon Stevens
Occasional Advisor

Clearing TCP Port

I have an client application that is communication with a process on the server through a tcp port. If the process on the server is stopped, the client does not release the port unless the client process is stopped. Does anyone know of a command that will clear the tcp port on the server without having to stop the client process (person logged on to client has gone home without logging out).
2 REPLIES 2
Rick Garland
Honored Contributor

Re: Clearing TCP Port

With the use of lsof, you can get the specifics to kill the process.
lsof can be obtained from the porting center.
James R. Ferguson
Acclaimed Contributor

Re: Clearing TCP Port

Leon:

This is annoying to say the least. See:

Document #A5462896: "IP: how to change the time a closed socket stays in TIME_WAIT state".

and Document #KBRC00004355: "netstat -an reveals TCP connections in a "CLOSE_WAIT" state".

Together, these should help explain why this happens and how to use 'ndd' to sever the connection.

...JRF...



Perhaps this will help you avoid or lessen the problem.

...JRF...