Java port forwarding
===

I am trying to design a very simple remote port forwarding java program.  When this program is complete and I run this in terminal:  "java PortForward 1234 google.com 80", the program should listen for a connection on 1234 and forward the traffic to 80 on the remote host google.com, I should then be able to point my browser to localhost:1234 and the browser should come up with google's page.

import java.io.*;
import java.net.*;

public class PortForward{
	public static void main(String argv[]) throws Exception{
        
        int portNum = Integer.parseInt(argv[0]);
        String hostName = argv[1];
        int hostportNum = Integer.parseInt(argv[2]);
        
        ServerSocket welcomeSocket = new ServerSocket(locportNum);
        
        
        while(true){
            Socket conSocket = welcomeSocket.accept();
            
            BufferedReader inFromBrowser = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
            
            DataOutputStream outToBrowser = new DataOutputStream(connectionSocket.getOutputStream());
            
            conSocket.close();
        }
        
    }
}

Ive been desperately searching and searching and searching and searching for any possible hint as to what to do next but i cant find anything useful.  Please help.  what should my next step be? 