Netcat Chat: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
*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: | ||
< | <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: | ||
</ | <source lang="bash">nc 192.168.1.33 12345</source> | ||
* 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! | * Start chatting! | ||
[[Category: Cookbook]] |
Latest revision as of 16: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!