Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
1  
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
add comment

Your Answer

 
discard

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.