java.net.ConnectException: Connection refused
Three checks: 1) Run the Server code before running the Client code. 2)instead of this Socket...
Tags: java, socket, networking, tcp