public static void main(String args[]) {

		int portnumber = 0;
		if (args.length > 0) {
			portnumber = Integer.parseInt(args[0]);
		} else {
			System.out.println("The portnumber to listen to is: ");
			Scanner scanner = new Scanner(System.in);
			String line = scanner.nextLine();
			if(!line.isEmpty()) {
				portnumber = Integer.parseInt(line);
			} else {
				portnumber = HTTPSettings.PORT_NUM;
			}			
			scanner.close();
		}

		try {
			System.out.println("Server started");
			
			HTTPListener listener = new HTTPListener(portnumber);
			listener.startUp();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}