{"id":17940,"date":"2021-12-14T17:11:37","date_gmt":"2021-12-14T16:11:37","guid":{"rendered":"https:\/\/ekiwi-blog.de\/?p=17940"},"modified":"2021-12-14T18:12:34","modified_gmt":"2021-12-14T17:12:34","slug":"windows-which-program-runs-on-a-specific-port","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/17940\/windows-which-program-runs-on-a-specific-port\/","title":{"rendered":"Windows: Which program runs on a specific port?"},"content":{"rendered":"<p>I wanted to start a web server on my computer today, however the port was already occupied. But which program was running?<\/p>\n<p><!--more--><\/p>\n<p>Today I wanted to play around with <a href=\"https:\/\/andydunkel.net\/2021\/12\/13\/jetty-server-einrichten-und-erste-schritte\/\" target=\"_blank\" rel=\"noopener\">Jetty<\/a>, a web server. This one starts on port 8080 by default. Stupidly, a service was already running on the port, so I just got an error message.<\/p>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/AF0SEciXBVY\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>When I called it in the browser, I also got a response, apparently a web server was already running there, which I didn&#8217;t know about so far. But how to find out which program or service is running here? At least the output in the browser did not help here.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2021\/12\/process_1.png\" alt=\"\" width=\"555\" height=\"230\" class=\"aligncenter size-full wp-image-17935\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2021\/12\/process_1.png 555w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2021\/12\/process_1-300x124.png 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/p>\n<p>The solution can be found in the <a href=\"https:\/\/ekiwi-blog.de\/en\/50830\/start-ssh-server-with-powershell-windows\/\" title=\"Start SSH server with PowerShell (Windows)\">Windows Powershell<\/a>. With the following commands, we can find out the name of the process:<\/p>\n<p><strong>TCP<\/strong><\/p>\n<pre>\r\nGet-Process -Id (Get-NetTCPConnection -LocalPort 8080).OwningProcess\r\n<\/pre>\n<p><strong>UDP<\/strong><\/p>\n<pre>\r\nGet-Process -Id (Get-NetUDPEndpoint -LocalPort 8080).OwningProcess\r\n<\/pre>\n<p>At least I knew afterwards that it was the &#8220;ApplicationWebServer&#8221;. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2021\/12\/process_2.png\" alt=\"\" width=\"683\" height=\"186\" class=\"aligncenter size-full wp-image-17937\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2021\/12\/process_2.png 683w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2021\/12\/process_2-300x82.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/p>\n<p>Well, I couldn&#8217;t do much with it at first, but at least you can find out which program it is via the &#8220;Details&#8221; tab of the task manager. In my case, something from National Instruments, which is installed on my computer and apparently has a web server.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2021\/12\/process_3.png\" alt=\"\" width=\"556\" height=\"290\" class=\"aligncenter size-full wp-image-17939\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2021\/12\/process_3.png 556w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2021\/12\/process_3-300x156.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>I wanted to start a web server on my computer today, however the port was already occupied. But which program<\/p>\n","protected":false},"author":1,"featured_media":14619,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[1602,1657],"class_list":["post-17940","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en","tag-security-en","tag-security-en-2"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/17940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=17940"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/17940\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/14619"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=17940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=17940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=17940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}