Determining what service or application owns a TCP port

by Mitch Tulloch [Published on 24 May 2012 / Last Updated on 24 May 2012]

How to determine the application or service that owns a TCP port

If you need to determine the application or service that is grabbing a TCP port because of some potential conflict you may foresee with another application or service you want to install, you can do so as follows.

First, use this command to find out the PID of the offending service or application:

netstat -ano | findstr ":xxxx"

Then open Task Manager (or use the tasklist command) to match the PID to the name of the application or service.

Mitch Tulloch is a seven-time recipient of the Microsoft Most Valuable Professional (MVP) award and widely recognized expert on Windows administration, deployment and virtualization. For more tips by Mitch you can follow him on Twitter or friend him on Facebook.

 

The Author — Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .

Latest Contributions

Featured Links