Skip to main content
Summary How to reconfigure Orbix services and servers to use IP instead of hostname in IORS
Article Number 13928
Environment All Supported Operating Systems Orbix 5.x Orbix 6.x
Question/Problem Description How to reconfigure Orbix services and servers to use IP instead of hostname in IORS
Clarifying Information  
Error Message  
Defect/Enhancement Number  
Cause  
Resolution

For indirect persistent POAs (line in the simple persistent demo), it is not enough to set

 policies:iiop:server_address_mode_policy:local_hostname

 with an IP address. This step will be sufficient only in case of direct persistent POAs and transient POA, where the locator will be bypassed in initial IIOP communication.

 

policies:iiop:server_address_mode_policy:local_hostname can be either set in the configuration file, or in the command line with:

-ORBpolicies:iiop:server_address_mode_policy:local_hostname <IP address>

 

For direct persistent and transient POAs, the locator Object reference need to be changed too. The way to do that would be: 
  • Change the following configuration in "iona_services. locator" (of course substitute the example hostname and IP with the correct ones):

 plugins:locator_cluster:iiop:addr_list  [" 'orb-cs-dev-01:3075"] to  [" 172.19.169.91:3075"];

  •   Change the following configuration in "iona_services. Locator. orb-cs-dev-01":

 policies:iiop:server_address_mode_policy:local_hostname and plugins:locator:iiop:host to ip address instead of hostname

  •  Re-prepare the locator: this steps generate a new IOR for the locator with IP address instead of hostname. The command should look something like:

<path to itlocator> -ORBname iona_services.locator.<host_name> -ORBdomain_name <domain name> -ORBconfig_domains_dir <domain_path> prepare

  •  Replace the locator IOR in every place where the IOR is referenced in the config file with the new one.

 

  •  For the rest of the steps, do the same steps as in 1), which is setting "policies:iiop:server_address_mode_policy:local_hostname" either in a command line or in the domain configuration.
Workaround  
Notes  
Attachment  
Created date: 06 September 2011
Last Modified: 13 February 2013
Last Published: 23 June 2012
First Published date: 09 September 2011

#Orbix
#KnowledgeDocs