Group Final Project for Computer Network Course
In this file, we made a simple web server Program based on TCP Socket programming.
We have 6 goals for this web server:
- Implementation of a TCP socket and linking it to a specific address and port
- Web server programs can receive and parse the sent HTTP requests by the browser
- Web server can search for and retrieve files (from the file system) requested by clients
- Web servers can create an HTTP response message consisting of headers and requested file content
- Web server can send a response message that has been made to the browser (client) and can display properly on the client side
- If the file requested by the client is not available, the web server can send a message “404 Not Found” and can be displayed correctly on the client side.
How to run this web server?
- Run Server on CMD
- Run Client on separate CMD
- CLient will ask for the file that wanted to be shown on the web server