<?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/"
	xmlns:media="http://search.yahoo.com/mrss/">

<channel>
	<title>Port Archives - Manish Sanger</title>
	<atom:link href="https://www.manishsanger.com/tag/port/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.manishsanger.com/tag/port/</link>
	<description>Java, J2EE, Spring Framework, application security,big data,database,design patterns,hibernate,j2ee,java,jdbc,micro-services,mongodb,multithreading,nosql</description>
	<lastBuildDate>Fri, 15 Dec 2017 07:55:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Release port on MacOSX and Linux</title>
		<link>https://www.manishsanger.com/release-port-on-macosx-and-linux/</link>
					<comments>https://www.manishsanger.com/release-port-on-macosx-and-linux/#respond</comments>
		
		<dc:creator><![CDATA[manishsanger]]></dc:creator>
		<pubDate>Fri, 15 Dec 2017 06:33:51 +0000</pubDate>
				<category><![CDATA[Installation/SetUp]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Port]]></category>
		<category><![CDATA[release port]]></category>
		<guid isPermaLink="false">https://www.manishsanger.com/?p=258</guid>

					<description><![CDATA[<p>Sometimes when we start application on MacOSx or linux they don&#8217;t start, because an port is already occupied by application which terminated unexpectedly or by some other application. Developers face these kind of issue more frequently, when we run java application in our IDE eclipse or IntelliJ Idea and switch between run/debug or error in [&#8230;]</p>
<p>The post <a href="https://www.manishsanger.com/release-port-on-macosx-and-linux/">Release port on MacOSX and Linux</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sometimes when we start application on MacOSx or linux they don&#8217;t start, because an port is already occupied by application which terminated unexpectedly or by some other application. Developers face these kind of issue more frequently, when we run java application in our IDE eclipse or IntelliJ Idea and switch between run/debug or error in run/debug. Now we need to free the port which was occupied by an existing instance of the application or any other application, so that we can run the program again. This is a 2 step process:</p>
<p><strong>1. Find applications running on a particular port</strong><br />
<pre><code class="bash">lsof -i :[port]
</code></pre>
<br />
<strong>2. Kill application running on a port by PID we got from the previous step:</strong><br />
<pre><code class="bash">Kill -9 [PID]
</code></pre>
<p>Here is the screenshot:<br />
<div id="attachment_259" style="width: 927px" class="wp-caption alignnone"><a href="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-259" src="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM.png" alt="free port on MacOSX or linux terminal" width="917" height="73" class="size-full wp-image-259" srcset="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM.png 917w, https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM-300x24.png 300w, https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM-768x61.png 768w" sizes="(max-width: 917px) 100vw, 917px" /></a><p id="caption-attachment-259" class="wp-caption-text">free port on MacOSX or linux terminal</p></div>
<p>The post <a href="https://www.manishsanger.com/release-port-on-macosx-and-linux/">Release port on MacOSX and Linux</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.manishsanger.com/release-port-on-macosx-and-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM.png" length="45122" type="image/png"/><media:content url="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM.png" width="917" height="73" medium="image" type="image/png"/>	</item>
		<item>
		<title>Release port 8080 on Windows</title>
		<link>https://www.manishsanger.com/release-port-8080-on-windows/</link>
					<comments>https://www.manishsanger.com/release-port-8080-on-windows/#respond</comments>
		
		<dc:creator><![CDATA[manishsanger]]></dc:creator>
		<pubDate>Mon, 09 Feb 2015 08:59:43 +0000</pubDate>
				<category><![CDATA[Installation/SetUp]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Port]]></category>
		<guid isPermaLink="false">https://www.manishsanger.com/?p=219</guid>

					<description><![CDATA[<p>Sometimes when we run java application on windows platform, it doesn&#8217;t start tomcat and says port 8080 already in use. To resolve this issue, we have to kill the process running on port 8080. Below are the few simple steps to release port 8080. Start you command prompt as an administator: Run the following command [&#8230;]</p>
<p>The post <a href="https://www.manishsanger.com/release-port-8080-on-windows/">Release port 8080 on Windows</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sometimes when we run java application on windows platform, it doesn&#8217;t start tomcat and says port 8080 already in use. To resolve this issue, we have to kill the process running on port 8080. Below are the few simple steps to release port 8080.</p>
<p>Start you command prompt as an administator:</p>
<p><img decoding="async" class="alignnone size-full wp-image-220" alt="cmd_run_as_administrator" src="https://www.manishsanger.com/wp-content/uploads/2015/02/cmd_run_as_administrator.png" width="319" height="419" srcset="https://www.manishsanger.com/wp-content/uploads/2015/02/cmd_run_as_administrator.png 319w, https://www.manishsanger.com/wp-content/uploads/2015/02/cmd_run_as_administrator-228x300.png 228w" sizes="(max-width: 319px) 100vw, 319px" /></p>
<p>Run the following command to get the process which is using the port 8080:<br />
<br />
<pre><code class="bash">netstat -o -n -a | findstr 0.0:8080<br />
</code></pre>
<br />
To kill the process running on port 8080:<br />
<br />
<pre><code class="bash">taskkill /F /PID <pid>
</code></pre>
<p><img decoding="async" class="alignnone size-full wp-image-221" alt="release_port_8080" src="https://www.manishsanger.com/wp-content/uploads/2015/02/release_port_8080.png" width="644" height="117" srcset="https://www.manishsanger.com/wp-content/uploads/2015/02/release_port_8080.png 644w, https://www.manishsanger.com/wp-content/uploads/2015/02/release_port_8080-300x54.png 300w" sizes="(max-width: 644px) 100vw, 644px" /></p>
<p>That&#8217;s it, have fun!!</p>
<p>The post <a href="https://www.manishsanger.com/release-port-8080-on-windows/">Release port 8080 on Windows</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.manishsanger.com/release-port-8080-on-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.manishsanger.com/wp-content/uploads/2015/02/release_port_8080.png" length="4746" type="image/png"/><media:content url="https://www.manishsanger.com/wp-content/uploads/2015/02/release_port_8080.png" width="644" height="117" medium="image" type="image/png"/>	</item>
	</channel>
</rss>
