Skip to content

Latest commit

 

History

History
29 lines (29 loc) · 1.1 KB

README.md

File metadata and controls

29 lines (29 loc) · 1.1 KB
  1. Download code into IDEA.
  2. Build the project.
  3. Server
    1. Open a terminal/command window.
    2. cd to Magic8Ball/out/production/Magic8Ball
    3. Enter 'java Magic8BallDemo' to see the usage message.
    4. Enter 'java Magic8BallDemo server 4466' to start the server on port 4466 (you can use any port in the User Ports range that is not already in use on your computer).
    5. You should see a server startup message.
    6. Leave the window open.
  4. Client
    1. Open another terminal/command window.
    2. cd to Magic8Ball/out/production/Magic8Ball
    3. Enter 'java Magic8BallDemo client localhost 4466' to start the client (if you used a different number for the server, use that number here as well).
    4. You should see a message from the server.
    5. Enter text from the keyboard; when you hit Enter you will receive a reply.
    6. When you hit just Enter, both client and server will stop with a message.