{"id":11077,"date":"2024-09-03T22:07:57","date_gmt":"2024-09-03T22:07:57","guid":{"rendered":"https:\/\/putridparrot.com\/blog\/?p=11077"},"modified":"2024-09-03T22:07:57","modified_gmt":"2024-09-03T22:07:57","slug":"you-run-your-server-application-and-the-port-is-not-available","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/you-run-your-server-application-and-the-port-is-not-available\/","title":{"rendered":"You run your server application and the port is not available"},"content":{"rendered":"<p>I&#8217;ve hit this problem before (see post <a href=\"https:\/\/putridparrot.com\/blog\/an-attempt-was-made-to-access-a-socket-in-a-way-forbidden-by-its-access-permissions\/\" rel=\"noopener\" target=\"_blank\">. An attempt was made to access a socket in a way forbidden by its access permissions<\/a>). The port was available one day and seemingly locked the next&#8230;<\/p>\n<p>Try the following step to see if it&#8217;s on the exclusion port range<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnetsh interface ipv4 show excludedportrange protocol=tcp\r\n<\/pre>\n<p>If you do find the port is within one of the ranges then I&#8217;ve found (at least for the port I&#8217;ve been using) that I can stop and restart the winnat service, i.e.<\/p>\n<p><em>Note: you may need to run these as administrator.<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnet stop winnat\r\n<\/pre>\n<p>then<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnet start winnat\r\n<\/pre>\n<p>and the excluded port list reduces in size.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve hit this problem before (see post . An attempt was made to access a socket in a way forbidden by its access permissions). The port was available one day and seemingly locked the next&#8230; Try the following step to see if it&#8217;s on the exclusion port range netsh interface ipv4 show excludedportrange protocol=tcp If [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-11077","post","type-post","status-publish","format-standard","hentry","category-programming"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/11077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=11077"}],"version-history":[{"count":3,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/11077\/revisions"}],"predecessor-version":[{"id":11096,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/11077\/revisions\/11096"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=11077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=11077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=11077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}