I have scanner(on client) that is getting information from(server), when server sends all required strings, all the code after that is just not being executed(like it paused execution of the program).
Example(it loops and prints good, until server is sending all the data, but, when its finished, it does not execute print, or any other command, even in the loop itself!):
System.out.print("-- " + scanner1.nextLine());
System.out.print("Something bla bla");
The program is waiting for the remote to either send an end of line marker (e.g. '\n'), or close its socket output stream. However it seems like the server doesn't send any of them. So instead of using Scanner here you should try using something like