I used file stream to read data from the files with the text.
The server listens to the specified port, and then the client sends request to the server through the same port.
The server will process the request from the client, and send the results back through the same port.

arguments are [port] [prefix] [textfile]

eg. java Client 4000 Ali metal-albums.txt