I have two Java projects that communicate with sockets through strings. One is a client and the other is a server. The server accepts the connection trough the \"ServerSocke
Your server sends "USERNAME" and then waits. The client reads the next line, and blocks until it receives it. So you have a deadlock, since the server never sends an EOL character. If the client reads a line, the server should send a line.