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:
Host 2:
Code:
telnet host1 12345
Trying host1...
Connected to host1.
Escape character is '^]'.
hello
Host 1:
Code:
# nc -k -l 12345
hello