Haz click aquí para acceder a la Versión en Español
This repository demonstrates a basic client-server communication setup using TCP sockets implemented in Python. The server and client can be run locally to facilitate communication between two processes on the same machine.
This project sets up a basic client-server model using TCP sockets in Python to facilitate communication between two processes on the same machine.
- Python 3 installed on your machine.
-
Clone the repository:
git clone https://github.com/DevLizOps/python-socket-tcp.git cd python-socket-tcp
-
Ensure Python 3 is installed:
python3 --version
-
Open a terminal and navigate to the directory containing
server.py
. -
Run the server script:
python3 server.py
-
Open another terminal and navigate to the directory containing
client.py
. -
Run the client script:
python3 client.py
Follow the prompts on both the server and client to send and receive messages, verifying that the communication works correctly.
Click here to go back to the English version
Este proyecto muestra una configuración básica de comunicación cliente-servidor utilizando sockets TCP implementados en Python. El servidor y el cliente pueden ejecutarse localmente para facilitar la comunicación entre dos procesos en la misma máquina.
Este proyecto establece un modelo básico de cliente-servidor utilizando sockets TCP en Python para facilitar la comunicación entre dos procesos en la misma máquina.
- Python 3 instalado en tu máquina.
-
Clona el repositorio:
git clone https://github.com/DevLizOps/python-socket-tcp.git cd python-socket-tcp
-
Asegúrate de que Python 3 esté instalado:
python3 --version
-
Abre una terminal y navega hasta el directorio que contiene
server.py
. -
Ejecuta el script del servidor:
python3 server.py
-
Abre otra terminal y navega hasta el directorio que contiene
client.py
. -
Ejecuta el script del cliente:
python3 client.py
Sigue las instrucciones en ambos, servidor y cliente, para enviar y recibir mensajes, verificando que la comunicación funcione correctamente.