JAVA Networking help

Use a socket connection to allow a client to specify a text file name and have the server send the contents of the file or indicate that it does not exist.

Only display the contents of files that have a “.bat” extension. Display an error message for all other requests that are not for files with the “,bat” extension.

need step by step instructions with codes and directions to how to use it ….