All rights are reserved by Niteesh Kumar.. Theme images by Storman. Powered by Blogger.


Total Pageviews

Blog Archive


Monday, 2 November 2020

How to check whether port number is already in use or not?

How to check whether port number is in use or not?

Sometimes we get the "PORT xxxx is already in use" error when trying to run an application. We also face this issue sometimes when while trying to access the any particular PORT number.

To check whether any particular port number is in use or not follow the  steps given below - 

  • Open "Terminal"
  • Type Below Command in Terminal window -     

     netstat -vanp tcp | grep 3000 // Replace 3000 with PORT Number

  • Replace 3000 with your PORT Number 
  • Click "Enter" and you will see the results in the screen.

Now if you want to make this port idle or available to use you just need to find the "PID" that will be there in the result of above command. 

After finding the "PID" of the process using this port number run the below command - 

kill "pid_value"

After running this command if you will run the command to search the port number you will see empty result.

6 on: "How to check whether port number is already in use or not?"
  1. It is truly a well-researched content and excellent wording. I got so engaged in this material that I couldn’t wait to read. Read more info about second phone number for business. I am impressed with your work and skill. Thanks.

  2. I really like reading through a post that can make people think. Also, many thanks for permitting me to comment!

    Open Port Checker

  3. Very well written article. It was an awesome article to read. about How To Cancel Mitel Phone Service Complete rich content and fully informative. I totally Loved it.

  4. You are giving great information. It is truly useful and authentic data for ourselves and everybody to increment information about Travel eSIM Card .Continue sharing your information. Much thanks to you.

  5. Your blog contains lots of valuable data. It is a factual and beneficial article for us.Voip Providers In UAE Thankful to you for sharing an article like this.

  6. You are giving such interesting information. It is great and beneficial info for us, office phone system for small business charlotte nc I really enjoyed reading it. Thankful to you for sharing an article like this.