<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>port &#8211; CodePills.com</title>
	<atom:link href="https://codepills.com/tag/port/feed/" rel="self" type="application/rss+xml" />
	<link>https://codepills.com</link>
	<description>Helping you make a better code</description>
	<lastBuildDate>Sat, 30 Mar 2024 13:46:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>How do you kill the port on Windows?</title>
		<link>https://codepills.com/how-do-you-kill-the-port-on-windows/</link>
					<comments>https://codepills.com/how-do-you-kill-the-port-on-windows/#respond</comments>
		
		<dc:creator><![CDATA[Andrej Buday]]></dc:creator>
		<pubDate>Sat, 01 Jun 2019 08:00:28 +0000</pubDate>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://codekopf.com/?p=799</guid>

					<description><![CDATA[This tutorial shows how to kill the port in the Windows operating system. <a href="https://codepills.com/how-do-you-kill-the-port-on-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>How do you set a port free that is assigned to a particular process or application? This tutorial shows how to kill the port in the Windows operating system.</p>
<p><span id="more-799"></span></p>
<p><strong>Issue</strong></p>
<p>I got into trouble with my Spring Boot application on my development machine. The application port occupancy prevented my local Spring development environment from running. By default, Spring uses port 8443. So, I needed to make the port free to run my application without needing to rewrite the port number in the application config file.</p>
<p><strong>Solution</strong></p>
<p>Here is a simple solution on how to set the occupied port free on Windows OS:</p>
<p><strong>Step 1</strong></p>
<p>You must run the Windows Command Line as an Administrator or Git Bash. Then, run the command below with the port number in the port number placeholder.</p>
<pre><code class="language-bash">netstat -ano | findstr :MY_PORT_NUMBER</code></pre>
<p>The number on the right side (PID &#8211; process identifier) is the number of processes currently using the port.</p>
<p><strong>Step 2</strong></p>
<p>For this, you can use only the Windows Command Line. First, you need to kill the process using the port so the port can be set free. Type the following command with process PID to the command line:</p>
<pre><code class="language-bash">taskkill /PID YOUR_PID_NUMBER /F</code></pre>
<p>Prefix /F, in this case, means forcefully terminates the process.</p>
<p>If everything went smoothly, you should get the following message:</p>
<blockquote><p>SUCCESS: The process with PID YOUR_PID_NUMBER has been terminated.</p></blockquote>
<p>In the end, rerun the first command to check whether the process is on or not. If you get an empty line, the process successfully ends, and the required port is free.</p>
<h2>Conclusion</h2>
<p>This article shows how to kill the Windows operating system port quickly.</p>
<p>Did you find releasing ports easy? Do you have your trick, or do you know another way <u>how to kill specific port on the Windows operating system</u>? Let us know in the comments below. We would like to hear your ideas and stories.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codepills.com/how-do-you-kill-the-port-on-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
