By: Joshua Mahony (10829953) jm426@uni.brighton.ac.uk
Instructions for running the pong coursework
Note: The server will crash if a client disconnects.
Server.jar command line options
-p the port for the server to use
Client.jar command line options -p the port of the server -h the hostname of the server -m start a multicast game -s start a spectator needs the the port to listen on
-
Start the server with the command
java -jar Server.jar -p 50001
-
Start a client in a new window with the command
java -jar Client.jar -p 50001 -h localhost
-
Start another client in a new window with the command
java -jar Client.jar -p 50001 -h localhost
-
Start the server with the command
java -jar Server.jar -p 50001
-
Start a client in a new window with the command
java -jar Client.jar -p 50001 -h localhost -m
-
Start another client in a new window with the command
java -jar Client.jar -p 50001 -h localhost -m
-
Start a spectator client in a new window
java -jar Client.jar -s 50002