The Runnable and PrintWriter was implemented as opposed to Extending the Thread class in the server and also the client. There is a need to fix the NullException on the ClientOutputStream in the server and br.Ready in the client class.