Binome TP programmation réseaux de Matthieu et Matheus
Vous pouvez consulter les javadocs en consultant ce site
This short tutorial should help you getting started with running the server and client on IntelliJ
It is important (for now) to always launch the server before launching the clients, else the clients will crash!
- Go in the
Server.java
file and locate the main function, there hover on the green play button at the left of the funciton definition and right click then go in Modify Run Configurations...
- There add the port number as an argument, if you are unsure of what to use, use
8080
which is what most server like to use.
- Go in the
Client.java
file and locate the main function, there hover on the green play button at the left of the funciton definition and right click then go in Modify Run Configurations.... (Same procedure as with the server part).
2.In here you must add 2 arguments: the host of your client and the port it will be pointing to. For host you can put any ip address you have access to but we recommend you use localhost
, then for the point you must use the same port number as the one used for your server, otherwise your client will point to a port with no server!
- Now last but not least, you must go to Modify options (a bit above arguments) and select the Allow multiple instances option which will allow us to launch many clients!