-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
31 lines (18 loc) · 1.18 KB
/
README.txt
File metadata and controls
31 lines (18 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
****************Requirement****************************
1) Latest Version of Python should be Installed on the sytem
2) Visual Studio Code should Be Installed on the system
3) Two Systems are required Weather It Can Be Laptop or PC.
Condition : Both System should be connected on The Same Wifi Network
Steps 1
Paste The Server code in visual studio code of system 1
and paste the client code in visual studio code of System 2
Step 2 : Before Running The Code Do Some Changes
Whatever You will be chat in the Console, data will be Stored in A notepad file, So We have to do some changes in Server Code
You will see a code like this
from socket import *
f1=open("C:\\Users\\ANKIT\\Desktop\\Python Chat Room\\chats.txt","a")
C:\\Users\\ANKIT\\Desktop\\Python Chat Room --> Just replace this location with the original location of chats.txt in your System.
Step 3
Run the server code first It will ask Enter Port Number U can enter any value greator than 1024 for ex 5566,9999 etc
Now Run The Client Code, You Have to enter the same port number that you have entered in server code. After pressing enter both system will be connected.
Hurrey !! Congratulation.