Saturday 6 August 2011

How to free ports in windows 7

1. Open command prompt.
   i in the run section of start menu type cmd and hit enter,  a black window is opened.
2. type the command netstat -ano | find  "8080" and hit enter.

   netstat is a command that shows which ports are active.
  - used to attach the following attributes
     a displays all connections and ports
     n displays ports and adreses in numeric form
     o displays the process id which is using that port
 | used to execute another command over the output of the previous command.
  find is used to search for particular character patterns
"8080" is the pattern which i am searching.
here it means the port number number which I am interested to free ie 8080

3. the result would show you the process which is using that port.
4. Take the PID (process ID, the last numeric thing in the row) of that process.
5. Kill that process from task manager.
  i open task manager.
 ii search for that pid in the process tab.
   if you dont find the pid column
   goto view>select columns> select the pid option.
 iii rt click on that process and end it.


Thats it.




No comments:

Post a Comment