static void sendKillSwitch(S ip, int port) { print("Sending kill switch to " + ip + ":" + port); Socket s = new Socket(ip, port); OutputStream out = s.getOutputStream(); out.write("kill!\n".getBytes("UTF-8")); s.close(); }