Skip to content

Latest commit

 

History

History
 
 

Word Transfer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Package/Script Name: Word Transfer

Short description of package/script

  • For transfer of words between computers or between a windows or VM in a same computer
  • It imports the library socket

Setup instructions

  • Need to switch off the local firewall in both the pcs
  • To run the server in a VM or in a different computer and the client in the different computer and change the IP in the client folder based on the IP of the VM/Computer.

Detailed explanation of script, if needed

A. Steps to create the socket program on word transfer from client to server with Ubuntu on VM as the server:

  • First created a python file on ubuntu which contains a list of words
  • Imported the words file while creating the server file on Ubuntu
  • While creating the server file on Ubuntu(word_transfer_server): a. First created a socket b. Took an arbitary port number greater than 1023(in this case it is 3603) for the transfer of infromation c. Binded the ports of the client and server d. Listened to the client for information e. Received the word from the client f. Checked if the word was present in the predefined list g. Passed back the result of the search to the client h. Ended the connection
  • While creating the client file on Windows(word_transfer_client): a. First created a socket b. Took the same port number as in the server(in this case 3603) c. Looked for the ip address in the Ubuntu on VM d. Entered the ip address for connecting with the server e. Took the word from the client f. Sent the word to check if it's present in the list g. Received the search result from the server h. Displayed it to the client i. Ended the connection

Output

## Author(s)

Kumarjeet Ray

Disclaimers, if any

N/A