This is a simple TCP server implemented in Rust. It listens on 127.0.0.1:7979 and serves HTML, CSS, JavaScript, and image files.
- Rust and Cargo (latest stable version)
To run the server, follow these steps:
-
Clone this repository:
git clone https://github.com/yourusername/tcp-server.git cd tcp-server -
Run the server:
cargo run -
The server will start and listen on
127.0.0.1:7979.
Once the server is running, you can access it by opening a web browser and navigating to:
http://127.0.0.1:7979
src/main.rs: The main server codehtml/: Directory containing static files (HTML, CSS, JS, images)
- Single command to run (
cargo run) - Serves static files from the
html/directory - Listens on
127.0.0.1:7979
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.