ServerListen
public class ServerListen {
public static void main(String args[]) {
// decode port number from command line
int port=Integer.valueOf(args[0]).intValue();
// create server socket on that port
ServerSocket ss=new ServerSocket(port);
// process connections forever
System.out.println("Listening on port "+port);
// listen for incoming connections
dump(s.getInputStream(), System.out);