Netcat Chat: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "To make simple shell chat you can use netcat. On machine A start netcat and tell it to listen a free unblocked port number: <code> nc -l 12345 </code> On machine B, start a net...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
To make simple shell chat you can use netcat.
To make simple shell chat you can use netcat:


On machine A start netcat and tell it to listen a free unblocked port number:
*On machine A start netcat and tell it to listen a free unblocked port number:
<code>
<source lang="bash">nc -l 12345</source>
nc -l 12345
* On machine B, start a netcat client and tell it to connect to machine B's IP:
</code>
<source lang="bash">nc 192.168.1.33 12345</source>
* Start chatting!


On machine B, start a netcat client and tell it to connect to machine B's IP and start chatting!
[[Category: Cookbook]]
<code>
nc 192.168.1.33 12345
</code>

Latest revision as of 17:46, 12 January 2011

To make simple shell chat you can use netcat:

  • On machine A start netcat and tell it to listen a free unblocked port number:
nc -l 12345
  • On machine B, start a netcat client and tell it to connect to machine B's IP:
nc 192.168.1.33 12345
  • Start chatting!