staticvoidMain(string[]args){TcpListenerlistener=newTcpListener(IPAddress.Any,8080);listener.Start();Console.WriteLine("Server started on port 8080");while(true){TcpClientclient=listener.AcceptTcpClient();Console.WriteLine("Client connected");StreamReaderreader=newStreamReader(client.GetStream());stringrequest=reader.ReadLine();Console.WriteLine(request);StreamWriterwriter=newStreamWriter(client.GetStream());writer.Write("HTTP/1.1 200 OK\r\n");writer.Write("Content-Type: text/html\r\n");writer.Write("\r\n");writer.Write("<html><body><h1>Hello World!</h1></body></html>");writer.Flush();client.Close();Console.WriteLine("Client disconnected");}}