Setup Instructions

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 2

DownloadSetup Instructions
Open PDF In BrowserView PDF
Setup Instructions
Without NAT
1. Pre-load the directory server with values.

In DirectoryServerListen.java, locate this method called test. Change the filename to the name
of the file that you intend to use for testing. Also change the filesize and chunksize
appropriately. As we are testing without NAT, we can ignore the public fields including
hostname. Change the private ip to the party who has the desired file. For the port, change it to
the the sending party’s port that he is using for Listener.java, the default value is 3001.
2. Enter the ip address of your wireless lan adapter Wi-fi

In P2PClient.java, enter it in the field ip.
3. Start the STUN server in a public domain
Start the STUN server in a public domain and note down the IP of where this server is hosted
on.

In the method getPublicIPnPort() in P2PClient.java, update the ip address at
clientSocket.connect(.....) to the ip address of where the STUN server is located.

4. Edit relay parameters

In P2PClient.java, edit the ip here to the ip of where the STUN server is hosted on.
5. Start the directory server by running DirectoryServerListen.java, note down the ip address of
where it is hosted.
6. Start P2PClient.java and enter in the ip & port of the directory server when prompted.The
default port of the directory server where it is listening for connections is 7777.
*Note*
The file to send has to be in the same folder as P2PClient.java



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : Yes
Producer                        : Skia/PDF m72
Page Count                      : 2
EXIF Metadata provided by EXIF.tools

Navigation menu