General >> Network >> Telnet
private TelnetClient telnet;
telnet = new TelnetClient();
//*** Connect to server
telnet.connect("localhost", 12036);
//*** Launch a telnet command
PrintStream out = new PrintStream(telnet.getOutputStream());
out.println("cdo stopserver");
out.flush();