From 5eacc99c08263c62af19f42f7ccd6a73067e456d Mon Sep 17 00:00:00 2001 From: Azreyo <58790873+Azreyo@users.noreply.github.com> Date: Sat, 8 Feb 2025 23:34:37 +0100 Subject: [PATCH] Update README.md --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1940c11..3458b8d 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ This is a simple HTTP server for linux operating system written in C. It support ```bash git clone https://github.com/Azreyo/Http-server - cd Http-server + cd Http-server/ ``` 3. **Compile:** @@ -31,7 +31,7 @@ This is a simple HTTP server for linux operating system written in C. It support ```bash gcc server.c config_parser.c server_config.c -o server -lssl -lcrypto -lpthread -pthread -lcjson -lcjson -I/usr/include/cjson ``` - Compile it in raw gcc + Compile it in gcc ```bash @@ -66,5 +66,20 @@ This is a simple HTTP server for linux operating system written in C. It support ## Run Instructions +1. **Get IP address of your device that the program will run on:** +```bash +ip address +``` + +2. **Enable port 8080 for ufw** + +```bash +sudo ufw allow 8080 # 8080 is the default port +``` + +3. **Run it and enjoy** + ```bash ./bin/server # Run the executable from the bin directory +``` +