public static void main(String[] args) throws Exception
    {
        int port = 8080;
        ServerSocket serverSocket = new ServerSocket(port);
        System.out.println("Dummy Server started on port "+port);
        while(true)
        {
            Socket socket = serverSocket.accept();
            new Thread( ()->serve(socket) ).start();
        }
    }