java.net.ConnectException: Connection refused: connect. Interestingly it works on some jar files. But in most applications I get the above error. Even in the arthas ...
// Sends a string to the server. socket.send("Hello Server"); // Sends a JSON object to the server. socket.send(new JSONObject().put("key", "value").put("key2 ...