This is the server program part
System.out.println("Client starting");
// First, register us with the RMI registry
// Naming.rebind("Client", this);
// Now, find the server, and register with it
System.out.println("Finding server");
TickerServer server =
(TickerServer)Naming.lookup("rmi://" + host + "/" +
TickerServer.LOOKUP_NAME);
// This should cause the server to call us back.
System.out.println("Connecting to server");
server.connect(this);
System.out.println("Client program ready.");