{"id":16737,"date":"2020-12-28T03:21:47","date_gmt":"2020-12-28T03:21:47","guid":{"rendered":"https:\/\/www.top-password.com\/blog\/?p=16737"},"modified":"2020-12-28T03:27:08","modified_gmt":"2020-12-28T03:27:08","slug":"find-which-process-is-listening-on-given-port-in-windows","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/find-which-process-is-listening-on-given-port-in-windows\/","title":{"rendered":"How to Find Which Process is Listening on a Given Port in Windows 10"},"content":{"rendered":"<p>Is there a way to determine which application is listening on a certain port? How do I see if a particular port is in use on a windows PC? In this tutorial we&#8217;ll show you how to find out which process is listening on a given port in Windows 10, by using Command Prompt or PowerShell.<\/p>\n<p><strong>Part 1: Find the ID of the Process Using a Given Port<\/strong><\/p>\n<p>To get started, <a href=\"https:\/\/www.top-password.com\/blog\/open-elevated-command-prompt-from-standard-user-in-windows\/\" rel=\"noopener\" target=\"_blank\">open the elevated Command Prompt<\/a> and run the following command:<br \/>\n<code>netstat -aon<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/netstat-command.png\" alt=\"\" width=\"600\" height=\"251\" class=\"alignnone size-full wp-image-16740\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/netstat-command.png 600w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/netstat-command-300x126.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>It will display a list of TCP and UDP ports currently listening on your computer. In our case, the TCP port 3389 is used by a process whose process ID (PID) is 1272.<\/p>\n<p>You can also use <a href=\"https:\/\/www.top-password.com\/blog\/5-ways-to-run-powershell-as-administrator-in-windows-10\/\" rel=\"noopener\" target=\"_blank\">PowerShell<\/a> to find out which process is listening on the TCP port 3389. Just enter this command:<br \/>\n<code>Get-Process -Id (Get-NetTCPConnection -LocalPort Your_Port_Number).OwningProcess<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/find-process-by-port.png\" alt=\"\" width=\"562\" height=\"232\" class=\"alignnone size-full wp-image-16741\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/find-process-by-port.png 562w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/find-process-by-port-300x124.png 300w\" sizes=\"auto, (max-width: 562px) 100vw, 562px\" \/><\/p>\n<p>For UDP port, use this command instead:<br \/>\n<code>Get-Process -Id (Get-NetUDPEndpoint -LocalPort Your_Port_Number).OwningProcess<\/code><\/p>\n<p><strong>Part 2: Get Process Name by its ID<\/strong><\/p>\n<p>In order to find the process name by its process ID, <a href=\"https:\/\/www.top-password.com\/blog\/5-quick-ways-to-open-task-manager-in-windows-10-8\/\" rel=\"noopener\" target=\"_blank\">open Task Manager<\/a> and go to the <strong>Processes<\/strong> tab. Sort the list of process by clicking the column header that is labeled &#8220;<strong>PID<\/strong>&#8220;. In our case, the process associated with the PID 1272 is Remote Desktop Services.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/find-process-name-by-pid.png\" alt=\"\" width=\"501\" height=\"381\" class=\"alignnone size-full wp-image-16742\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/find-process-name-by-pid.png 501w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/find-process-name-by-pid-300x228.png 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/p>\n<p>If you do not see a PID column, right-click the header of any column and select the <strong>PID<\/strong> option.<\/p>\n<p><strong>Conclusion<\/strong><\/p>\n<p>That&#8217;s how you can find out which process is listening on a given port in Windows 10, by using Command Prompt or PowerShell. If you would rather use a third-party software to check ports in use, <a rel=\"nofollow noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/sysinternals\/downloads\/tcpview\" target=\"_blank\">TCPView<\/a> should be your good choice.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Is there a way to determine which application is listening on a certain port? How do I see if a particular port is in use on a windows PC? In this tutorial we&#8217;ll show you how to find out which process is listening on a given port in Windows 10, by using Command Prompt or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10,1894],"tags":[4622,4621,4623],"class_list":["post-16737","post","type-post","status-publish","format-standard","hentry","category-others","category-tips-tricks","category-windows-10","tag-check-ports-in-use-windows","tag-find-process-listening-on-port-windows","tag-find-process-using-port-windows"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/16737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=16737"}],"version-history":[{"count":10,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/16737\/revisions"}],"predecessor-version":[{"id":16750,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/16737\/revisions\/16750"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=16737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=16737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=16737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}