“netstat” command is used to check which program is using which port.
Here are steps to forcefully free used ports.

Steps:


1) Search cmd and run it as Admin Mode by choosing “Run as administrator” on right click.

2) Type following command and hit enter 

    netstat –ano 

This will provide a list of ports, along with the PID (process ID) that has those ports open.



   (Shortcut: netstat -ano | findstr portNumber)

3) Now Check the process id corresponding to which you want to free port

    taskkill /PID XXX 


4) To forcefully kill

    taskkill /F /PID XXX


Categories: Tricks

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Coding Tricks

How to get saved password in browser

Sometimes we have saved password on different websites. You can see the User Name but Password is in dots. In HTML language, User Name is visible because its type is text and Password field is in dots Read more…

Tricks

Download video from Facebook

Sometimes we watch videos on facebook and want to download it on phone/laptop. But facebook does not provide the download link to download the video on your device. This post will guide you how to Read more…

Javascript

console.log : Stylize console logging in browser

console.log() method logs any string to console window of the browser. But you know, there is a way to provide style to string message even we can draw images 😉 like in facebook prints in console window   Read more…