Documentation by JACOB REED as of 1/17/17
- Start by compiling the server
cd server
javac *.java
- Next, Start the server on the port you wish to has clients connect to.
java P2PServer 1111
Port = 1111
**THIS PORT WILL BE THE ONE USED WHEN STARTING THE CLIENT AND WILL BE HOW THE SERVER CONNECTS TO THE CLIENTS
# Client ### Running The Client + Start by compiling the client ```bash cd client javac *.java ``` + After, get the host IP if not connecting to Digital Ocean server ```bash ifconfig ``` + Finally start the connection to the server either using the hosst machine IP or Digital Ocean server ```bash java P2PClient jake 127.0.0.1 1111 ``` Username = jake
IP = 127.0.0.1
Port = 1111
**THE USERNAME, IP, AND PORT WILL VARY. EACH CLIENT NEEDS A DIFFERERNT USERNAME BUT WILL CONNECT TO THE SAME IP AND PORT
*It is recomended that you connect to the Digital Ocean Server at IP: 67.205.175.195 and Port: 1111
***Let me know of any connection issues as I will have to log in to my account to fix them.**
### Using The Client #### Sending a file 1. Navigate to File > Send File. 2. Browse for the file by clicking ... and select the file to transfer. 3. Type the username for who you wish to send the file to. 4. They will hasve to accept the transfer and you will get a notification that the file has been transfered. 5. They will recieve notification that the file has been downloaded to the directory they selected. 6. Close out of the send file dialogue box.
- Navigate to File > Save Chat To File.
- Selecte the directory to save the chat to along with the filename.
- Confirmation of where the file was saved will be displayed.
- Navigate to File > Online Users.
- A message dialog will appear with all of the currently connected clients.
- Navigate to File > Clear Chat History.
- Confirm clearing the history.
- Messages will be deleted from your client's view.
- Navigate to Session > Disconnect.
- Confirm disconnecting.