CREATING THE SOCKET ON A MACHINE (PC/LAPTOP) AND SHARING A FILE REMOTELY THROUGH SOCKET PROGRAMMING ON RASPBERRY PI

STEP 1: DOWNLOAD PYTHON FOR WINDOW AND INSTALL ON THE SYSTEM

STEP2: OPEN IDLE (PYTHON GUI) AND CREATE NEW FILE AND WAP FOR SERVER server.py AS SHOWN BELOW:

1

STEP 3: SET UP RASPBERRY PI WITH INTERNET CONNECTION

STEP 4: OPEN LEAFPAD AND WAP FOR CLIENT AS client.py AS SHOWN BELOW:

2

STEP 5: RUN THE SERVER CODE ON LAPTOP BY CLICKING RUN MODULE

3

WHEN THE CODE RUN SUCCESSFULLY THEN SOCKET WILL BE CREATED AND READY FOR LISTENING TO THE SERVER

4

STEP6: FOR ACCESSING THE SERVER REMOTELY TURN OFF THE FIREWALL OF THE SYSTEM

5

STEP 7: OPEN THE LX TERMINAL ON RASPBERRY PI AND RUN THE CLIENT CODE6

STEP 8: WHEN CONNECTION IS ESTABLISHED THEN THE SERVER WILL SEND THE FILE TO THE CLIENT7

8

Hence, the file will be successfully shared with the socket programming.