Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an app that doesn't properly stop listening on a port.

How do I force it to stop so I can open the application again/use that port again?

share|improve this question
Appears as though bobber205 is asking for a windows answer based on his tag "windows". @bobber205 - care to confirm this? – Patrick R Feb 22 '10 at 17:51
@Patrick R: bobber205 did not tag it windows; thepocketwade did. You can confirm that it is windows by looking at his comment to Stephen Thompson's answer. – Kevin M Feb 22 '10 at 18:07
@Kevin M - I was attempting to gentle nudge bobber205 to be more clear when he created questions. Especially since the first answer he received was about unix (where I had clearly seen that he had left a comment that he needed a windows answer). Creating clear and concise questions is a skill that we all (including me) improve when receiving occasional tips. – Patrick R Feb 22 '10 at 19:57

Yup - get TCPView from SysInternals, find the application and the connection, and close it. Failing that, restarting the application, unless the specific app has a way of doing this. Most apps won't.

share|improve this answer

If the application is running under unix,

Kill -9 <pid> 

will forcefully kill a process releasing all it's resources. The


can be found by doing a

ps aex

at the command line.

share|improve this answer
This is on Windows. – bobber205 Feb 21 '10 at 21:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.