Thread: Server-Client
View Single Post
  #2   (View Single Post)  
Old 18th March 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

You could try net/netcat from ports (the executable is called nc). Here's an online man file for it.

Code:
Netcat is a simple Unix utility which reads and writes data across
network connections using TCP or UDP protocol.  It is designed to be a
reliable "back-end" tool that can be used directly or easily driven by
other programs and scripts.  At the same time it is a feature-rich
network debugging and exploration tool, since it can create almost any
kind of connection you would need and has several interesting built-in
capabilities.
Here's a simple tcp example:

Host 1:
Code:
# nc -k -l 12345
Host 2:
Code:
telnet host1 12345
Trying host1...
Connected to host1.
Escape character is '^]'.
hello
Host 1:
Code:
# nc -k -l 12345
hello

Last edited by DutchDaemon; 18th March 2009 at 10:38 AM.
Reply With Quote