It's quite a mess but easy to run:
#First the server side:
#Client side# where you can see the outputStream that is sent to the server.
Small project that sends an integer to the server side and adds it +1 showing it on the screen. If you write: "exit" on the client the application stops.
Java