Would you like to learn how to find out which process is listening on a TCP port? In this tutorial, we will show you how to find the process which is listening on a TCP port of a computer running Linux.
• Ubuntu 18
• Ubuntu 19
• Ubuntu 20
• Ubuntu 22
Copyright © 2018-2021 by Techexpert.tips.
All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means without the prior written permission of the publisher.
Equipment list
Here you can find the list of equipment used to create this tutorial.
This link will also show the software list used to create this tutorial.
Tutorial Linux – Find out which process is Listening on a TCP port
List all TCP connections.
Here is the command output.
List all TCP connections using LSOF.
Here is the command output.
List TCP ports in the Listen state.
Here is the command output.
Search for the process listening on a specific TCP port.
Here is the command output.
Search for the process using a specific TCP port.
Here is the command output.
Search for multiple TCP ports.
Here is the command output.
List the ID of a process using a specific TCP port.
Here is the command output.
Find the process name using the ID.
Here is the command output.
Congratulations! You are able to find out which process is using a TCP port on Linux.