Cyberpython Online

My Projects

TFTP server - TFTP client

Description

Warning: The code and binaries included in this project are not intended to be used for any real world purposes as they are not safe/stable/feature complete in any way (for example, only octet mode is supported, dallying is not implemented, no check is performed before overwriting files etc.) !!! Use them at your own risk!

This project consists of two seperate applications (intended to run under UNIX or UNIX-like operating systems - though they should work under other operating systems as long as a Java VM is installed and the “ping” program is in the system path) : a client and a server that implement the Trivial File Transfer Protocol (RFC 1350) .
Both applications are written in pure Java and provide a command-line interface (there is no GUI available).
The server is started using the command:
java -jar tftpserver.jar <port> [-v] [-d]

where <port> is the port number that the server will be listening to, and -v, -d are switches that turn on verbose mode and debugging info respectively.

In order to run the client you can give the command:
java -jar tftpclient.jar –r/-w <filename> <address> <port > [-v] [-d]

where -r means “download the file”, -w “upload the file”, <filename> is the name of the file to download/upload, <address> is the IP address of the TFTP server, <port> is the port on which the server is listening and -v, -d are switches that turn on verbose mode and debugging info respectively.

Limitations

  • Only octet mode is implemented
  • The “ping” program must be either in the system path or in /usr/etc/  .
  • Dallying is not implemented.

Download

Click here to download a zip archive containing the source code and binaries.

License

Copyright © Georgios Migdos.
Both source code and binaries are distributed under the BSD licence.

Written by cyberpython

October 27th, 2008 at 3:33 pm

Posted in MyProjects