<?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>Installation/SetUp Archives - Manish Sanger</title>
	<atom:link href="https://www.manishsanger.com/setup/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.manishsanger.com/setup/</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>How to check if a port is open on a remote host?</title>
		<link>https://www.manishsanger.com/how-to-check-if-a-port-is-open-on-a-remote-host/</link>
					<comments>https://www.manishsanger.com/how-to-check-if-a-port-is-open-on-a-remote-host/#respond</comments>
		
		<dc:creator><![CDATA[manishsanger]]></dc:creator>
		<pubDate>Fri, 15 Dec 2017 07:50:28 +0000</pubDate>
				<category><![CDATA[Installation/SetUp]]></category>
		<guid isPermaLink="false">https://www.manishsanger.com/?p=262</guid>

					<description><![CDATA[<p>To test if a port is open on a remote host or not. Our networking guys always use to tell that they opened the port, you can&#8217;t always run your code to test it. If you are on windows then you can do telnet. To enable the telnet on Windows 10, Click here Open the [&#8230;]</p>
<p>The post <a href="https://www.manishsanger.com/how-to-check-if-a-port-is-open-on-a-remote-host/">How to check if a port is open on a remote host?</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To test if a port is open on a remote host or not. Our networking guys always use to tell that they opened the port, you can&#8217;t always run your code to test it.<br />
If you are on windows then you can do telnet.<br />
To enable the telnet on Windows 10, <a href="https://kencenerelli.wordpress.com/2017/07/16/enabling-telnet-client-in-windows-10/" rel="noopener" target="_blank">Click here</a><br />
<br />
<strong>Open the command prompt and run the following command:</strong><br />
<pre><code class="bash">telnet 192.168.1.205 80<br />
</code></pre>
<br />
If it is successful, that it will enter on the screen. Run help to see the available option. Type quit to exit.</p>
<p>If networking guys are debugging the connection issue they always use to say give me the telnet screenshot or output, and you are on Linux or MacOSX. There are number of ways to do it on terminal via Netcat:<br />
<Strong>Netcat:</Strong> Netcat (often abbreviated to nc) is a computer networking utility for reading from and writing to network connections using TCP or UDP. Netcat is designed to be a dependable back-end that can be used directly or easily driven by other programs and scripts. source <a href="https://en.wikipedia.org/wiki/Netcat" rel="noopener" target="_blank">wikipedia</a></p>
<p><strong>Single Port:</strong><br />
<pre><code class="bash">nc -zv 192.168.1.205 80<br />
</code></pre>
<br />
Here is the output of the command:<br />
<br />
<div id="attachment_264" style="width: 431px" class="wp-caption alignnone"><a href="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-12.40.01-PM.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-264" src="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-12.40.01-PM.png" alt="NetCat multiple port" width="421" height="185" class="size-full wp-image-264" srcset="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-12.40.01-PM.png 421w, https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-12.40.01-PM-300x132.png 300w" sizes="(max-width: 421px) 100vw, 421px" /></a><p id="caption-attachment-264" class="wp-caption-text">NetCat multiple port</p></div>
<p><strong>Multiple Ports:</strong><br />
<pre><code class="bash">nc -zv 192.168.1.205 80 8080<br />
</code></pre>
<br />
Here is the output of the command:<br />
<br />
<div id="attachment_263" style="width: 448px" class="wp-caption alignnone"><a href="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-12.40.36-PM.png"><img decoding="async" aria-describedby="caption-attachment-263" src="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-12.40.36-PM.png" alt="Netcat single port" width="438" height="199" class="size-full wp-image-263" srcset="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-12.40.36-PM.png 438w, https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-12.40.36-PM-300x136.png 300w" sizes="(max-width: 438px) 100vw, 438px" /></a><p id="caption-attachment-263" class="wp-caption-text">Netcat single port</p></div>
<p><strong>Range of ports:</strong><br />
<pre><code class="bash">nc -zv 192.168.1.205 80-100<br />
</code></pre>
<br />
Here is the output of the command:<br />
<br />
<div id="attachment_265" 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-1.png"><img decoding="async" aria-describedby="caption-attachment-265" src="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM-1.png" alt="Netcat range of ports" width="917" height="73" class="size-full wp-image-265" srcset="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM-1.png 917w, https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM-1-300x24.png 300w, https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-11.37.35-AM-1-768x61.png 768w" sizes="(max-width: 917px) 100vw, 917px" /></a><p id="caption-attachment-265" class="wp-caption-text">Netcat range of ports</p></div>
<p>The post <a href="https://www.manishsanger.com/how-to-check-if-a-port-is-open-on-a-remote-host/">How to check if a port is open on a remote host?</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.manishsanger.com/how-to-check-if-a-port-is-open-on-a-remote-host/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-12.40.01-PM.png" length="27324" type="image/png"/><media:content url="https://www.manishsanger.com/wp-content/uploads/2017/12/Screen-Shot-2017-12-15-at-12.40.01-PM.png" width="421" height="185" medium="image" type="image/png"/>	</item>
		<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 loading="lazy" 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="auto, (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 loading="lazy" 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="auto, (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 loading="lazy" 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="auto, (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>
		<item>
		<title>Install Java7 on Linux (Ubuntu 12.04)</title>
		<link>https://www.manishsanger.com/install-java7-on-linuxubuntu-12-04/</link>
					<comments>https://www.manishsanger.com/install-java7-on-linuxubuntu-12-04/#respond</comments>
		
		<dc:creator><![CDATA[manishsanger]]></dc:creator>
		<pubDate>Fri, 12 Apr 2013 10:34:58 +0000</pubDate>
				<category><![CDATA[Installation/SetUp]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 12.04 LTS]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Java 7]]></category>
		<category><![CDATA[install]]></category>
		<guid isPermaLink="false">https://www.manishsanger.com/?p=137</guid>

					<description><![CDATA[<p>If you are running an older version on java on your Ubuntu 12.04 environment, you must remove it before installing Java7. Do the following to remove: If you installed java 7 earlier and having problem with java then you have to do the following to remove it: Installing Oracle Java7 on Ubuntu 12.04 LTS: You [&#8230;]</p>
<p>The post <a href="https://www.manishsanger.com/install-java7-on-linuxubuntu-12-04/">Install Java7 on Linux (Ubuntu 12.04)</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you are running an older version on java on your Ubuntu 12.04 environment, you must remove it before installing Java7. Do the following to remove:</p>
<pre><code class="bash"><p>$sudo apt-get purge openjdk*</p>
</code></pre>
<p>If you installed java 7 earlier and having problem with java then you have to do the following to remove it:</p>
<pre><code class="bash">$sudo rm /var/lib/dpkg/info/oracle-java7-installer*<br />
$sudo apt-get purge oracle-java7-installer*<br />
$sudo rm /etc/apt/sources.list.d/*java*<br />
$sudo apt-get update<br />
</code></pre>
<p>Installing Oracle Java7 on Ubuntu 12.04 LTS:</p>
<pre><code class="bash">$sudo add-apt-repository ppa:webupd8team/java<br />
$sudo apt-get update<br />
$sudo apt-get install oracle-java7-installer<br />
</code></pre>
<p>You will be prompted couple of times for permissions and Oracle Policy agreement [You must be agreed to Oracle policies to install Java :-)].</p>
<p>That&#8217;s it! Now you have Oracle Java7 installed on your Ubuntu 12.04 environment, to check the Java version run the following on terminal:</p>
<pre><code class="bash">$java -version<br />
java version "1.7.0_17"<br />
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)<br />
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)<br />
</code></pre>
<p>Or You can check the java version by searching java in Ubuntu dashboard.</p>
<p>Oracle Java 7 plugin Control Panel -&gt; General Tab -&gt; About</p>
<p><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-156" alt="java7 version Ubuntu 12.04" src="https://www.manishsanger.com/wp-content/uploads/2013/04/java7_version_ui.jpg" width="449" height="607" srcset="https://www.manishsanger.com/wp-content/uploads/2013/04/java7_version_ui.jpg 449w, https://www.manishsanger.com/wp-content/uploads/2013/04/java7_version_ui-221x300.jpg 221w" sizes="auto, (max-width: 449px) 100vw, 449px" /></p>
<p>The post <a href="https://www.manishsanger.com/install-java7-on-linuxubuntu-12-04/">Install Java7 on Linux (Ubuntu 12.04)</a> appeared first on <a href="https://www.manishsanger.com">Manish Sanger</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.manishsanger.com/install-java7-on-linuxubuntu-12-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.manishsanger.com/wp-content/uploads/2013/04/java7.jpg" length="31913" type="image/jpeg"/><media:content url="https://www.manishsanger.com/wp-content/uploads/2013/04/java7.jpg" width="377" height="277" medium="image" type="image/jpeg"/>	</item>
	</channel>
</rss>
