- This was the first accessed exercise for my Networking and Operating Systems course (NOSE2 COMPSCI2024) in Level 2 - semester 1 on 29/10/2021.
- I achieved in this project a grade of A4 ≈ (74% - 78%).
- It only works on a local LAN network. Therefore, it cannot transfer files to a host outside your local network.
- It does not have a GUI. Therefore, you need to run both client and server scripts from the command line.
- It only works on windows operating systems.
-
Make sure you are in the right directory. If not, use
cd <YOUR/FOLDER/PATH>
to navigate to the correct folder. -
On the command line, write the follows:
- server.py file:
python server.py <PORT NUMBER>
- client.py file:
python client.py localhost <PORT NUMBER> <ACTION WORD> <FILENAME>
- server.py file:
For example: server.py file:
python server.py 2000
client.py file:
python client.py localhost 2000 LIST
python client.py localhost 2000 PUT <FILENAME>
python client.py localhost 2000 GET <FILENAME>
- Make sure you choose a
<PORT NUMBER>
that is in the allowed assignment port numbers range 1024 to 49151. Otherwise, the OS might not be able to bind it and it will return an error. - Make sure the
<PORT NUMBER>
is consistent on the command arguments for server.py and client.py. Otherwise, client will never be able to find the server and initiate communication. - When using
PUT
, make sure the file required to be uploaded to the server is in the client folder. FILENAME
must be the full filename of the file to be uploaded/downloaded with its extension. E.g.picture.jpg
.
- Networking and using the Socket library in Python.
- Developed my problem solving skills and the ability to work on a bigger project than I used to.