The host and port may be specified in the server as well as client program as follows:
Properties props = new Properties();
props.put(”org.omg.CORBA.ORBInitialHost”,”172.16.4.248”);
props.put(”org.omg.CORBA.ORBInitialPort”, ”6789”);
ORB orb = ORB.init(args, props);
In this case, use the following simple commands to start the server and client respectively.
java CalculatorServer
java CalculatorClient
Source: Uttam Kumar Roy (2015), Advanced Java programming, Oxford University Press.