Log in
Search
Keywords
Most Viewed Topics
Latest topics
How Can I Tell What is Listening on a TCP/IP Port in Windows?
Page 1 of 1
How Can I Tell What is Listening on a TCP/IP Port in Windows?
Whenever an application wants to make itself accessible over the network, it claims a TCP/IP port, which means that port can’t be used by anything else. So if you need to use an in-use port, how do you tell what application is holding it?
There’s a number of ways to tell what application has the port locked, but we’ll walk through the built-in way using the command line and Task Manager, and then a great freeware application that does it all in one utility.
Use Built-In Tools to See What is Listening on a Port
The first step is to use a command-line tool to see what ports are in use, and use a special flag that tells us which port is assigned to each Windows process identifier number. Then we can use that number to look up exactly which process it is.
Open up a command prompt and type in the following—you may have to open in Administrator mode to see all processes:
netstat -ab | more
This will immediately show you a list, although it’s maybe a little complicated. You’ll see the process name in the list, and you can search for it.
You can also use this other method, which takes an extra step, but makes it easier to locate the actual process:
netstat -aon | more
If you look on the right-hand side, you’ll see where I’ve highlighted the list of PIDs, or Process Identifiers. Find the one that’s bound to the port that you’re trying to troubleshoot—for this example, you’ll see that 0.0.0.0:80, or port 80, is in use by PID 4708.
image
Now you can simply open up Task Manager—you might have to use the option to Show Processes for All Users, and then you’ll be able to find the PID in the list. Once you’re there, you can use the End Process, Open File Location, or Go to Service(s) options to control the process or stop it.
image
There’s a number of ways to tell what application has the port locked, but we’ll walk through the built-in way using the command line and Task Manager, and then a great freeware application that does it all in one utility.
Use Built-In Tools to See What is Listening on a Port
The first step is to use a command-line tool to see what ports are in use, and use a special flag that tells us which port is assigned to each Windows process identifier number. Then we can use that number to look up exactly which process it is.
Open up a command prompt and type in the following—you may have to open in Administrator mode to see all processes:
netstat -ab | more
This will immediately show you a list, although it’s maybe a little complicated. You’ll see the process name in the list, and you can search for it.
You can also use this other method, which takes an extra step, but makes it easier to locate the actual process:
netstat -aon | more
If you look on the right-hand side, you’ll see where I’ve highlighted the list of PIDs, or Process Identifiers. Find the one that’s bound to the port that you’re trying to troubleshoot—for this example, you’ll see that 0.0.0.0:80, or port 80, is in use by PID 4708.
image
Now you can simply open up Task Manager—you might have to use the option to Show Processes for All Users, and then you’ll be able to find the PID in the list. Once you’re there, you can use the End Process, Open File Location, or Go to Service(s) options to control the process or stop it.
image
Similar topics
» Hwo To Resolve common Windows 7 problems : Windows 7 themes change your custom icons
» Hwo To Resolve common Windows 7 problems : iPhone won't sync in Windows 7
» How to Uninstall Windows 10 and Downgrade to Windows 7 or 8.1
» HOW-TO: REPLACE A MINI USB PORT (ON YOUR CELLPHONE)
» Mac Blu-Ray Player for Windows
» Hwo To Resolve common Windows 7 problems : iPhone won't sync in Windows 7
» How to Uninstall Windows 10 and Downgrade to Windows 7 or 8.1
» HOW-TO: REPLACE A MINI USB PORT (ON YOUR CELLPHONE)
» Mac Blu-Ray Player for Windows
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Sat Mar 02, 2019 5:50 pm by toddgross0007
» EML to PST
Sat Mar 02, 2019 5:49 pm by toddgross0007
» Restore IncrediMail Email
Thu Feb 28, 2019 5:36 pm by toddgross0007
» How to Recover IncrediMail Folders That Disappeared
Thu Feb 28, 2019 5:34 pm by toddgross0007
» EDB to PST Converter software
Tue Feb 28, 2017 6:39 pm by toddgross0007
» Convert OST to PST utility
Tue Feb 28, 2017 6:29 pm by toddgross0007
» MBOX to PST Converter
Wed Jan 25, 2017 3:11 pm by emersonhurst
» SQL Database Recovery
Wed Jan 25, 2017 3:09 pm by emersonhurst
» MBOX to PST Convert software
Fri Jan 06, 2017 3:48 pm by geetjit13