Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Whenever I try to run an test.exe from command prompt, I get an error **

test.exe: binding connection listen socket to TCP port 7963 failed: 10048 (Specified address is in use).

So, how do I find out which process is using the specified port?

share|improve this question
up vote 6 down vote accepted

netstat -ano will get you a list of PIDs by port. Feel free to add fancy filtering if you can't be bothered to look through the list;) Then just turn on the PID column in Task Manager and identify the culprit.

share|improve this answer
@phoebus: Thanks for the answer. Sorry I can't vote for the answer. I did get the PID from the netstat command. But, now if I want to force close a port. Is it possible? – tugga Nov 30 '09 at 11:09
Once you correlate that PID with the PID list in Task Manager, just close the application that is using the port, or change its settings to use a different one. – phoebus Nov 30 '09 at 13:26
never knew about the 'o' flag - thanks – warren Nov 30 '09 at 13:53

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.