packagesums;importjava.io.*;importjava.net.*;classMultiServer{publicstaticvoidmain(Stringargv[])throwsException{intportService;BufferedReaderinFromUser=newBufferedReader(newInputStreamReader(System.in));System.out.print("Please, insert the service port number:");portService=Integer.parseInt(inFromUser.readLine());// create a "listening socket" on the specified portServerSocketwelcomeSocket=newServerSocket(portService);while(true){SocketconnectionSocket=welcomeSocket.accept();System.out.print("Client address: "+connectionSocket.getInetAddress()+", port: "+connectionSocket.getPort());// thread creation passing the established socket as argServerThreadtheThread=newServerThread(connectionSocket);// start of the threadtheThread.start();}}}