Python Socket Programming Tutorial Youtube - Watch Tutorial
This project demonstrates a simple client-server interaction using Python's socket programming. The server listens for incoming connections from clients, receives messages, and sends back a confirmation. The client connects to the server, sends messages, and receives acknowledgments.
server.py
: Contains the server-side code.client.py
: Contains the client-side code.
-
Open a terminal and navigate to the project directory.
-
Run the server script.
python server.py
-
The server will start listening for connections. It will display information about incoming connections and received messages.
-
Open another terminal and navigate to the project directory (if not already there).
-
Run the client script.
python client.py
-
The client will connect to the server and send messages. It will display the acknowledgment received from the server.
-
You can send multiple messages. To disconnect from the server, send the
!DISCONNECT
message.
CSE434 Computer Networks Socket Project