Dos command to close and open port

Author posted by Jitendra on Posted on under category Categories Tech Tips and tagged as Tags , with 2 Comments on Dos command to close and open port

Dos command to close and open port in Windows XP, Windows 7 and Windows Server

1)Type  netstat -a -o -n in command prompt.

Netstat command in DOS
Netstat command in DOS

2) find the PID number for that port number (as shown in above image).
3) goto task manager and end process the corresponding PID number.

Close Open Port from Task manager in Windows xp
Close Open Port from Task manager in Windows xp

If  PID is not visible in task manager then goto View->Select Column and select PID column.

Related posts

  • abhinav

    thanks a lot

  • Mtelab

    How is this a DOS command ..