This is a simple FTP client and server written in Java for a school project that I though I should share
java Server <port>
portcan be any open valid port or 0 for the first open available portThe server remains running until it is manually killed with ^C (Ctrl+C)
If 0 is used for the port number, then after closing connections with a client a new port is used (the old port is still closed)
This program pulls files from a directory named
AvailableFileswithin the same directory that this class file is in (FTP/Server/AvailableFilesby default)
Input: java Server 5000
java Client <IP Address> <port>
java Client <Host> <port>
IP Addressmust be a valid IPv4 Address
Hostmust be a valid evaluatable Hostname
portcan be any open valid portThe Client downloads files and saves them into a directory named
DownloadedFilesthat is within the same directory that this class file is in (FTP/Client/DownloadedFilesby default)
Input: java Client 127.0.0.1 5000
Input: java Client localhost 1414