TelnetStdioRedirector - A Telnet server to redirect stdin/stdout

The Java class TelnetStdioRedirector implements a minimalist embedded Telnet server, that redirects the standard input/output streams of the Java runtime library (, out and err) to a connecting Telnet client. In addition, it provides an interface to read single keystrokes without echo and optionally without blocking.

It can be used for example to implement:

Since normal i/o through and System.out is used to communicate with the connected Telnet client, the same application program code can also be used with local console i/o.

Source code:
Test program:

Author: Christian d'Heureuse (,