Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

pulse-net/sockapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SockApp

Simple flask web app to transfer files and messages between two computers using socket. Uses SockX to transfer files and messages.

Steps to run

  1. Install sockapp using pip:-
user@programmer~:$ pip install sockapp
  1. Run sockapp from terminal on both sender and receiver (make sure you are in receiving location at receiver's end):-
user@programmer~:$ sockapp

2.1. To run sockapp from a different port, pass it as a command line argument:-

user@programmer~:$ sockapp --port 12345

2.2. To run sockapp using a different protocol (default = TCP), pass it as a command line argument:-

user@programmer~:$ sockapp --protocol UDP

2.3. To run sockapp from a different working directory, pass it as a command line argument:-

user@programmer~:$ sockapp --start_dir /home/user/sample-dir

Note:- If you want to use TCP you can mention it using this command line arugment but since it is the default value, passing TCP is optional.

  1. From sender enter IP address of receiver and file path to be sent.

  2. From receiver accept the connection by pressing the receive button.

License

SockApp is licensed under MIT License.