Home » Questions » Computers [ Ask a new question ]

How do I find out what service is using a certain port?

How do I find out what service is using a certain port?

Port 22 specifically. I installed freeSSHd on a Windows Server 2008 box that only runs IIS. When I try to start the SSH Service, it tells me that the port is already being used. How can I find out what service is using this port?

Asked by: Guest | Views: 60
Total answers/comments: 4
Guest [Entry]

Sysinternals TCPView will show you TCP/UDP ports that are in use and the processes that are using them.
Guest [Entry]

"netstat in Windows 2008:

Start Command prompt with ""Run as administrator"", then type netstat -anb.

Command runs faster in numerical form (-n), and the -b option requires elevation.

To filter the output and check only udp ports: use netstat -anb -p udp"
Guest [Entry]

"Windows Resource Monitor (not Widows performance monitor, or the monitor from the task manager) will also show the port and PID of all open connections.

Start --> Search --> ""Resource Monitor"" --> Netowrk tab"
"Windows Resource Monitor (not Widows performance monitor, or the monitor from the task manager) will also show the port and PID of all open connections.

Start --> Search --> ""Resource Monitor"" --> Netowrk tab"
Guest [Entry]

"Run netstat –ano | find “0.0.0.0:22” under the evaluated rights and get the process ID (number in the last column).

Then use Task Manager (Ctrl+Shift+Esc) to identify process. If it doesn't show PID column then turn it on (“View” > “Select Columns” > “PID (Process identifier)”)"