public static void main(String[] args) {
		//num of args
		if (args.length != 2) {
			System.out.println("Error: Invalid number of arguments");
			System.exit(1);
		}
		
		//port number
		int port = 0;
		try {
			port = Integer.parseInt(args[1]);
		} catch(Exception e) {
			System.out.println("Error: Invalid port number");
			System.exit(1);
		}
		
		//hostname
		try {
			InetAddress.getByName(args[0]);
		} catch (Exception f) {
			System.out.println("Error: hostname does not resolve to an IP address");
			System.exit(1);
		}
		
		//server
		try {
			myftp instance = new myftp(args[0], port);
			instance.input();
		} catch(SocketTimeoutException ste) {
			System.out.println("Error: host could not be reached");
		} catch(ConnectException ce) {
			System.out.println("Error: no running FTP at remote host");
		} catch(Exception h) {
			System.out.println("Error: program quit unexpectedly");
		}
	}