Run your java programs on remote server in your network and get the ouput file back.
Run SocketServer.java file on the server machine which has java installed on it and SocketClient.java on the client machine.
The window on the client machine will also ask for input and when you run, it comes back with an output file.