Code Monkey home page Code Monkey logo

file-transfer-using-socket-programming's Introduction

File Transfer Using Socket Programming

A simple client-server program to transfer files between computers as bytes (NOT TCP). In this project, which is based on socket programming one end user becomes (Server) and another becomes (Client). Server sends requested files to Client in multiple format (mp4,txt,png,jpeg) and if file is not present in server then server ask client to type a message(requested file name) to client and save it as text file on Server so that it can be made available in future.

Dependencies

Virtual Environment

It is preferred to first create a virtual environment and run it in that. (Optional)

pip install virtualenv
python -m virtualenv sockets

Run this to activate the environment

./sockets/Scripts/activate.ps1

or whatever shell it is being run on.

Installing dependencies

Open the terminal and run

pip install -r requirements.txt

Run

  • Run server.py on the first machine.
  • Run client.py on the second machine.
  • Enter the server machine's IP address when prompted in the client machine
  • Type the name of the file along with the extension to transfer the file from the server machine to the client machine.

Note

Developed on python 3.8.10, but should work for older versions of python as well.

file-transfer-using-socket-programming's People

Contributors

adarsh275 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

vineshsou

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.