Make sure you are not using a println() to write out your commands
since the "ln" part is platform dependent and typically not CRLF which
is probably not what telnet is looking for. Instead, use:
String CRLF = "\r\n";
String command = "telnet_command";
PrintWriter writer = new PrintWrit
You should be able to track if there's any exception occured to the sockets
in question, of course that's assuming that you're performing
IO on them, such as attempting to read or write on the sockets. One thing you
should keep watch for is the variable that keeps track of the socket is being
I am having a problem with a server written in java that uses sockets.
The server runs fine; the problem arises when I try to access it. The
client is simply telnet and after making a connection, and receiving a
handful of bytes, the client hangs as if the server is not responding.
Yet the server