![]() The netstat command can be extended to count the number of connections on a specific port, you can do this by adding /c to the end of the command. This means that port 25 is being occupied by hMailServer, which is as expected. ![]() Now search through the list of PID’s to find the one matching the PID listed by your netstat command, in this example 844,which as you can see below is occupied by the hMailServer application. This will now display a context box with a number of options as below, please select “PID” from the list. To find out what process is assigned the displayed PID, right click on the task bar, and select “Task Manager”, once task manager has presented itself, select the “processes tab” and right click on the status title. The Command Prompt will now display any processes listening on port 25 as belowĪt the right hand side of the result, you will see a number, this number is a PID (Process Identifier), this number is assigned to a specific process on your server. In this tutorial, we’ll see different approaches to finding the process listening on a particular port in Linux. Sometimes we need to know which process is listening on a specific port. In the Command Prompt, type netstat -ano | find ":Required port number", for example, if you wish to find out what process is listening on port 25, you would type netstat -ano | find ":25" and hit Enter Overview We all know that a port can only be used by a single application or service at the same time. In order to find what process is running on a specific port in Windows, you need to utilise the netstat command ![]() To run the netstat command, you will first need to open a Command Prompt as administrator, to do so, please select start, type cmd, right click the resultant cmd.exe and “Run as Administrator” as below ![]() Using the netstat command to find port information ¶ Using the netstat command to find port information. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |