@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getSource() == exitButton)
			System.exit(0);
		// must have been the 'seek' button that was pressed,
		// so clear the output area of any previous output...
		report.setText("");

		// retrieve the url from the input text field...
		String host = hostInput.getText();

		try {
			// convert the url string into and InetAddress object..
			InetAddress theAddress = InetAddress.getByName(host);
			report.append("IP address: " + theAddress + "\n");
			report.append("Scanning start ...");
			for (int i = 0; i < 30 ; i++) {
				try {
					// attempt to establish a socket on port i...
					socket = new Socket(host, i);
					// if no IOException thrown, there must
					// be a service running on the port...
					report.append("There is a server on  port " + i + ".\n");
					socket.close();
				} catch (IOException ioEx) {
				}
			}
			report.append("Scanning completed");
		} catch (UnknownHostException uHEx) {
			report.setText("Unknown host!");
		}

	}