public void runServer()
	{
		try // set up server to receive connections; process connections
		{
			server = new ServerSocket( 12345, 100 ); // create ServerSocket

			while ( true ) 
			{
				try 
				{
					waitForConnection(); // wait for a connection
					getStreams(); // get input & output streams
					processConnection(); // process connection
				} // end try
				catch ( EOFException eofException ) 
				{
					 System.out.println( "\nServer terminated connection" );
				} // end catch
				finally 
				{
					closeConnection(); //  close connection
					++counter;
				} // end finally
			} // end while
		} // end try
		catch ( IOException ioException ) 
		{
			ioException.printStackTrace();
		} // end catch
	} // end method runServer