I tried to read message on socket with bufferreader
My client:
Socket socket = new Socket("10.0.0.4", 12345);
BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
System.out.println(in.readLine());
My python server:
(client, (address, _)) = server.accept() # Accept to new clients (Accept to new command from the phone)
client.send("Hello from server")
But when I send a message from the server to the client, the code gets stack in the last line System.out.println(in.readLine());
like he is waiting for something.
And whan I turn off the server, I get an error.
How can I read the input from my server with Java?