In this project, you will write a simple HTTP server (using “ServerSocket” class) that serves web browsers as its clients. This server is capable of processing only one request (like Project 1). Once your program starts, it opens a server socket with port number 9000, waiting for any client connection. After the server starts, it displays (on server’s side screen) server’s ip address, port number and the message that shows the server has started successfully.
Once the client makes a connection, the server must do the following;
1. The server displays the message that the client sent on server’s side screen.
2. The server assembles the response message using the format that was shown the lecture notes. The header lines are as follows
a. HTTP/1.1 200 OK
b. keep-Alive: timeout =10, max=100
c. Content-Type: text/html
d. Data Section follows
i. In this data section, you will simple return the string “The connection to
the Web Server was made on <Todays date and current time>.”
ii. DATA SECTION will be html format such as <HTML>… </HTML>
attachment is example you can use.

WhatsApp us