- For Windows - https://docs.python-guide.org/starting/install3/win/#install3-windows
- For MacOS - https://docs.python-guide.org/starting/install3/osx/#install3-osx
- For Linux - https://docs.python-guide.org/starting/install3/linux/#install3-linux
These are step to run Socket Programming for TCP. Please follow these below steps to run Server and Client.
- Go to TCP folder.
- Run server by using the command
python3 server.py
. - Run client by using the command
python3 client.py
. - After run client, You will see
ping
message in your terminal. - Type your server IP address append
ping
message and then enter. - You can set
timeout
,message
andNumber of retry loop
inclient.py
by set atTIMEOUT
,MESSAGE
andRETRY
variables.
These are step to run Socket Programming for UDP. Please follow these below steps to run Server and Client.
- Go to UDP folder.
- Run server by using the command
python3 server.py
. - Run client by using the command
python3 client.py
. - After run client, You will see
ping
message in your terminal. - Type your server IP address append
ping
message and then enter. - You can set
timeout
,message
andNumber of retry loop
inclient.py
by set atTIMEOUT
,MESSAGE
andRETRY
variables.