GithubHelp home page GithubHelp logo

stephenking1101 / tcp-file-transfer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mansimarkaur/tcp-file-transfer

0.0 1.0 0.0 20 KB

A file transfer application built using Java Socket Programming. It allows the client to download and upload files to a server using a GUI built with Java AWT and SWING.

Java 100.00%

tcp-file-transfer's Introduction

TCP-File-Transfer

This is a Java application that :

  • uses TCP for file transfer.

  • has a user interface buit using Java AWT and Java Swing.

  • is built using Java Socket Programming.

  • allows multiple users to connect to a server at once. It accomplishes this through multithreading.

  • mandates the server to specify working directory as a command line argument with the freedom to specify a custom port number as the second argument. The default port number has been set to 3333.

  • server assigns connection IDs to the clients connected.

  • mandates client to specify working directory as a command line argument. It allows user to specify host address and if not specified, defaults it to Localhost. The user can also specify the port number as the third argument.

  • Displays files and directories present in the server working directory and allows the client to select files and download them onto the client system.

  • Allows the client to upload files to the server working directory. This allows 2 clients to transfer files through the server.

  • You may call it ShareIt, Xender or something similar for laptops and PCs ๐Ÿ˜‰

Getting Started

git clone https://github.com/mansimarkaur/TCP-file-transfer
cd TCP-file-transfer

For server :

javac TCPServer.java
java TCPServer <server directory name>

For client :

javac TCPClient.java
java TCPClient <client directory name> 

Enter file name and click on upload. โฌ†๏ธ

Choose file to be downloaded from the panel and click on download. โฌ‡๏ธ

Server and Client can interact only through the same port number

Prerequisites

If you do not have Java installed, refer to this Java installation guide

For newbies, remember to set path variables in Windows and OSX

tcp-file-transfer's People

Contributors

mansimarkaur avatar sahildua2305 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.