<?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>nc Archives - Tech Antidote</title>
	<atom:link href="https://techantidote.com/tag/nc/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>‎ &#124; LINUX &#124; Tech &#124; Security &#124;</description>
	<lastBuildDate>Sun, 09 Oct 2016 20:11:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://techantidote.com/wp-content/uploads/2016/02/cropped-google-plus-profile-picture-32x32.png</url>
	<title>nc Archives - Tech Antidote</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">106369530</site>	<item>
		<title>Use netcat to chat over LAN</title>
		<link>https://techantidote.com/use-netcat-to-chat-over-lan/</link>
					<comments>https://techantidote.com/use-netcat-to-chat-over-lan/#comments</comments>
		
		<dc:creator><![CDATA[]]></dc:creator>
		<pubDate>Mon, 13 Jun 2016 18:17:30 +0000</pubDate>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Linux / Redhat]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[chat using nc]]></category>
		<category><![CDATA[kali]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nc]]></category>
		<category><![CDATA[netcat]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://techantidote.com/?p=2238</guid>

					<description><![CDATA[<p>This is quick guide on how to use netcat (nc) to chat between two PCs over LAN. VM 1: CentOS 6.6 My CentOS machine did not have netcat (nc) preinstalled so I had to manually install it. # yum install nc -y VM 2: Kali Linux 2016.1 &#124; IP: 192.168.1.11 &#124; The Kali Linux 2016.1 had netcat tools were pre-installed so i &#8230; <a href="https://techantidote.com/use-netcat-to-chat-over-lan/" class="more-link">Continue reading <span class="screen-reader-text">Use netcat to chat over LAN</span> <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://techantidote.com/use-netcat-to-chat-over-lan/">Use netcat to chat over LAN</a> appeared first on <a href="https://techantidote.com">Tech Antidote</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This is quick guide on how to use netcat (nc) to chat between two PCs over LAN.</p>
<p><strong><span style="color: #ff6600;">VM 1</span>: </strong><span style="color: #3366ff;">CentOS 6.6</span></p>
<p>My CentOS machine did not have netcat (nc) preinstalled so I had to manually install it.</p>
<pre><strong># yum install nc -y</strong></pre>
<p><strong><span style="color: #ff6600;">VM 2</span>: </strong><span style="color: #3366ff;">Kali Linux 2016.1</span><strong> | <span style="color: #ff6600;">IP</span>: </strong><span style="color: #ff0000;"><span style="color: #0000ff;">192.168.1.11</span> <span style="color: #0000ff;">|</span></span></p>
<p>The Kali Linux 2016.1 had netcat tools were pre-installed so i didn&#8217;t have to install it. Here, we take any one of the 2 Pcs as the chat server and the other as the chat client.</p>
<p>Here, I am selecting the Kali Linux to listen for connections on a random port 12345.  [Note: The port you select must be higher than the standard port 1024.]</p>
<p>In this case, I will make Kali as the chat server and set it to listen on port 12345.</p>
<pre><strong># nc -lvp 12345</strong></pre>
<p><img fetchpriority="high" decoding="async" data-attachment-id="2239" data-permalink="https://techantidote.com/use-netcat-to-chat-over-lan/kali-listening/" data-orig-file="https://techantidote.com/wp-content/uploads/2016/06/kali-listening.png" data-orig-size="720,89" data-comments-opened="1" data-image-title="kali listening" data-image-description="" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2016/06/kali-listening.png" class="alignnone wp-image-2239 size-full" src="http://techantidote.com/wp-content/uploads/2016/06/kali-listening.png" alt="nc listening on port 12345" width="720" height="89" srcset="https://techantidote.com/wp-content/uploads/2016/06/kali-listening.png 720w, https://techantidote.com/wp-content/uploads/2016/06/kali-listening-300x37.png 300w" sizes="(max-width: 720px) 100vw, 720px" /></p>
<p>Now from the 2nd PC i.e. the CentOS machine, we will make a connection to the Kali machine on port 12345.</p>
<pre><strong># nc 192.168.1.11 12345</strong></pre>
<p>Once connected, Kali&#8217;s terminal would show as message such as shown below:</p>
<p><img decoding="async" data-attachment-id="2240" data-permalink="https://techantidote.com/use-netcat-to-chat-over-lan/2-2/" data-orig-file="https://techantidote.com/wp-content/uploads/2016/06/2.png" data-orig-size="720,100" data-comments-opened="1" data-image-title="2" data-image-description="" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2016/06/2.png" class="alignnone wp-image-2240 size-full" src="http://techantidote.com/wp-content/uploads/2016/06/2.png" alt="nc accepting remote connection from LAN" width="720" height="100" srcset="https://techantidote.com/wp-content/uploads/2016/06/2.png 720w, https://techantidote.com/wp-content/uploads/2016/06/2-300x42.png 300w" sizes="(max-width: 720px) 100vw, 720px" /></p>
<p>Now, to start chatting type the text and hit ENTER in your keyboard to send chat messages between the two PCs. Pretty sweet uh?</p>
<p><img decoding="async" data-attachment-id="2241" data-permalink="https://techantidote.com/use-netcat-to-chat-over-lan/chat/" data-orig-file="https://techantidote.com/wp-content/uploads/2016/06/chat.png" data-orig-size="772,327" data-comments-opened="1" data-image-title="chat" data-image-description="" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2016/06/chat.png" class="alignnone wp-image-2241 size-full" src="http://techantidote.com/wp-content/uploads/2016/06/chat.png" alt="nc output showing chat" width="772" height="327" srcset="https://techantidote.com/wp-content/uploads/2016/06/chat.png 772w, https://techantidote.com/wp-content/uploads/2016/06/chat-300x127.png 300w, https://techantidote.com/wp-content/uploads/2016/06/chat-768x325.png 768w, https://techantidote.com/wp-content/uploads/2016/06/chat-770x327.png 770w" sizes="(max-width: 772px) 100vw, 772px" /></p>
<p>FYI, There are practically tons of uses of netcat (nc) other than sending messages.</p>
<p><span style="text-decoration: underline;"><span style="color: #3366ff; text-decoration: underline;">Other uses of netcat</span></span>:</p>
<ul>
<li>File Transfer: You can use to transfer file from one PC to another.</li>
<li>Port Scanning: Use netcat with the -z flag to run a port scan of the desired IP.</li>
<li>Clone &amp; transfer entire partitions: This comes handy if you need to take a backup and transfer it to another PC in your LAN. You can use the dd command to clone a partition or an entire hard disk and then transfer it across to another PC.</li>
<li>Run a simple Web server.</li>
</ul>
<p>Have you found any another use with netcat? Post it in the comment section down below. If your on a Linux machine, check out the man page for netcat for more info. Happy exploring!</p>
<p>If you liked this article, don&#8217;t forget to subscribe and follow us on <a href="http://twitter.com/TechAntidote">Twitter </a>and <a href="http://facebook.com/TechAntidote">Facebook</a>.</p>
<p><strong>Source</strong>: <a href="http://cybrary.it">Cybrary.it</a></p>
<p>The post <a href="https://techantidote.com/use-netcat-to-chat-over-lan/">Use netcat to chat over LAN</a> appeared first on <a href="https://techantidote.com">Tech Antidote</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techantidote.com/use-netcat-to-chat-over-lan/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2238</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: techantidote.com @ 2026-10-23 22:53:22 by W3 Total Cache
-->