Super User is a question and answer site for computer enthusiasts and power users. 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

How to delete binded port in Windows 7 from cmd? I'm developing client server application which running on the port 3434 and also is binded on port When I type in cmd netstat -an, I get this output:

  TCP               LISTENING

I can't get ride of them cause don't know the name of port. This link didn't help me, so can you?

share|improve this question
What, exactly, are you trying to get rid of? You've run a server application to listen on a TCP port, and netstat has told you that you have an application listening on a TCP port. What's the thing that you are trying to delete, precisely? – JdeBP Jan 19 '12 at 17:40
Precisely, delete listening port. – Ivan Pericic Jan 19 '12 at 18:29
Your providing the same three word non-explanation a second time doesn't clarify things. What are you trying to do? What has the computer done? And why do you think that that's in error? – JdeBP Jan 19 '12 at 18:56
Let's say that you want to close telnet server on 23 port, you will close telnet server or type something like: netsh advfirewall firewall delete rule name="telnsrv.exe" port=23 ... OK! Now think that you don't know the name of telent ("telnsrv.exe"), you just know the port on which some crashed program was run (TCP Thiscomputer:0 LISTENING [system]). How that to put those port in function? How to free those port? (that you can run again program on same port) – Ivan Pericic Jan 19 '12 at 19:13
up vote 3 down vote accepted

TCP Ports cannot be deleted, you must close the program that has bound itself to that port.

To find out what program is bound to a port use netstat -ab

 TCP        Thiscomputer:0             LISTENING

See How to find exe listening on port?

Try netstat with -o, it shows PID. and then use tasklist to see PID and process name. task manager also shows PID and process name

   TCP        bcs:49177              ESTABLISHED     1588  

Task Manager context menu
Using right-click context menu in Task-Manager

share|improve this answer
How to delete this, don't have any .exe: TCP nova:0 LISTENING [System] – Ivan Pericic Jan 19 '12 at 18:43
yes thnx for labor, ... but program has run and it was closed, and now when I'm searching for process or name of program don't see anything ... I will trust restart and than try again ... – Ivan Pericic Jan 19 '12 at 18:55
@IvanPericic: See updated answer (and related Q) – RedGrittyBrick Jan 19 '12 at 18:58
I try to restart but same thing, ... still I can't see the name of program just [System] and when trying to end process on him nothing happen .... Probably because my test application has crashed and port that has binded still stayed open. – Ivan Pericic Jan 19 '12 at 19:19
OK ... just to say I try to restart one more time and restart explorer with: cmd /c taskkill /f /im explorer.exe & start explorer.exe ... and those probably refresh some configuration, and now when put: netstat -an in cmd doesn't see 3434 port anymore... thxn again – Ivan Pericic Jan 19 '12 at 19:34

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.