Pages

Monday, October 8, 2012

Find the ports information in the server


Find the ports information in the server


I come across many situations in the work environment where finding ports information is mandatory. 

What is the status of the port, whether they are running , listening or not. These type of questions do arise.

How to find the status of the ports. We can use the command NETSTAT to find the ports information.

Examples are given below:

NETSTAT –an



NETSTAT –an | find  /i “listening”



If we want to know the process ID associated with the PORT which is functioning use –O as shown below.

NETSTAT –ao




Hope the above information helps

Thanks