This is a simple server thing that I created a while back. To use, you’ll have to edit the CLIENT.java file.
First, you want to have the Server file on one PC and the Client file on another (The RUN files are for testing). Both computers need to be on the same Wi-Fi. Change the Client file’s string (“RANDO_D”) on line 34 to be the name of the computer with the Server file. Run both files on their separate computers, and any text you type in the Client will be shown on the Server.