Kill the port number in use


1. List All the Port Number

Firstly, view if the port number in question is in use by running following command:

//Display all the port number in use
netstat -tulnap

2. Kill or Stop the port number by running fuser on your terminal as shown below:

// for e.g. sudo fuser -k 4444/tcp
sudo fuser -k /tcp


Done!