Skip to content

How to check for used and available ports with netstat

Introduction

A quick note about checking ports with Netstat. This worked for me within Ubuntu.

How To

  1. Make sure Net Tools is installed

    When Netstat does not work, run the following command:

    # Open your terminal application
    sudo apt-get update
    sudo apt install net-tools
  2. Get a detailed list of all TCP and UDP connections, listening ports, and the processes using them, along with their numerical addresses and port numbers

    Run the following command:

    # Open your terminal application
    sudo netstat -tulpen

Now you can check in the list whether a port is in use or not.

Comments

    No comments found for this note.

    Join the discussion for this note on Github. Comments appear on this page instantly.

    Copyright 2021- Fiction Becomes Fact