public static void main(String[] args) throws IOException {

        if (args.length != 3) {
            System.err.println(
                    "Usage: java TCPForwarder <destination host> <source port> <destination port>");
            System.exit(1);
        }
//        get the data from the console and bind it to the appropriate variables
        dest_host = args[0];
        source_port = Integer.parseInt(args[1]);
        dest_port = Integer.parseInt(args[2]);

//        //hard code ports + dest host
//        dest_host = "itu.dk";
//        dest_port = 80;
//        source_port = 8080;

        ServerSocket serverSocket = new ServerSocket(source_port);
        while (true) {
            Socket clientSocket = serverSocket.accept();
            //create a new client thread to support multiple connections + pass the client socket as an argument
            ClientThread clientThread =
                    new ClientThread(clientSocket);
            clientThread.start();
        }
    }