Skip to main content

Posts

Showing posts from January, 2016

ports checking and kill or stop listening ports

To list open network ports and the processes that own them with netstat, you can use this command netstat -a You can add the -n option to netstat to get port numbers instead of having the utility try to provide names for services: netstat -an 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 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.