An EchoServer is an application that allows a client and a server to connect so a client can send a message to the server and the server can receive the message and send, or echo, it back to the client.
Simple echo web-server on Python with socket default library.
Socket library official docs here.
- Server listen port 2500 on localhost and send response
- Headers added to the response, all browsers will be able to process the response correctly
- Socket library
- Python
-
Install the python interpreter from official site.
-
Clone this repository on you local machine
git clone https://github.com/AlexanderSeryakov/echo-web-server.git
-
Move to directory on main.py file
-
Start the server with command on Windows
python main.py
or on Linux
python3 main.py
-
If all success you`ll see message in console:
The server is running and waiting for a request