Simulation Of File Transfer Protocol A Client-Server File Exchange Utility Built in Java
Main Article Content
Abstract
Introduction: The File Transfer Protocol (FTP) is the standard mechanism for moving files between a client and a remote server, but studying it normally requires a production server installation. This paper presents a Java-based simulation of FTP.
Objectives: To build a client-server system that reproduces the core behaviour of FTP – authentication, per-user directories, and upload, download, rename and deletion of files – without a production-grade server.
Methods: A two-tier client-server architecture was implemented in Java using sockets, threads, java.io and AWT. The server authenticates users against a flat-file record, assigns each a private directory, and serves upload, download and delete requests through separate handlers on dedicated ports. The client displays local and remote directory trees side by side.
Results: The prototype supports login, private directory creation, tree-based browsing, and file upload, download and deletion. As built it handles one client session at a time, has no compression and no e-mail transfer.
Conclusions: The simulation captures the core of FTP and shows where a second version should start: an encrypted channel, audit logging, and virtual-thread concurrency.