tcpinout

tcpinout

Synopsis
tcpinout <host> <port> Run tcpinout in client mode
tcpinout <local port> Run tcpinout in server mode
Details
The tcpinout command is a test utility that sets up a TCP connection to a remote host and then connects the command's input and output streams to the socket. The command's standard input is read and sent to the remote machine, and simultaneously output from the remote machine is written to the command's standard output. This continues until the remote host closes the socket or a network error occurs.

In "client mode", the tcpinout command opens a connection to the supplied <host> and <port>. This assumes that there is a service on the remote host that is "listening" for connections on the port.

In "server mode", the tcpinout command listens for an incoming TCP connection on the supplied <local port>.